/* seimm.ca global stylesheet — v2 theme ("Warm professional").
 *
 * Design system:
 * - Palette: warm ivory paper instead of flat grey; warm charcoal ink; the
 *   maple red deepened to a burgundy (#8C2B23) used only for CTAs, accents
 *   and links. Calm, not colourful.
 * - Type: Fraunces (self-hosted latin subset in /fonts) for display
 *   headings, system sans for body.
 * - Surfaces: soft cards with hairline borders and gentle shadows;
 *   alternating ivory/white bands; dark warm footer.
 * - The Wajo chat launcher (fixed white circle, bottom right) sits on light
 *   surfaces everywhere, so it reads as part of the page rather than a
 *   bolt-on.
 *
 * Every class the pages use is defined here; v1 class names are kept working.
 */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
}

:root {
  --ink: #241f1a;
  --muted: #6e6459;
  --accent: #8c2b23;
  --accent-dark: #6e1f19;
  --accent-soft: #f6e8e4;
  --paper: #fffdf9;
  --wash: #f6f1e8;
  --line: #e9e0d2;
  --gold: #b7791f;
  --footer-ink: #f4efe6;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(36, 31, 26, 0.05), 0 10px 30px rgba(36, 31, 26, 0.07);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 0.4rem 0 0.8rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0.9rem 0 0.4rem; }

/* Small caps eyebrow above headings */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 50; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header: one compact sticky row, hamburger on small screens ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.site-header ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex: 1; }
.site-header ul a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; padding: 0.35rem 0; }
.site-header ul a:hover { color: var(--accent); }
.site-header .button { white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }
@media (max-width: 760px) {
  .site-header nav { gap: 0.75rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header .button { margin-left: 0; }
  /* The nav list collapses into a dropdown panel; the v1 stacked-links bug is gone. */
  .site-header ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.4rem 1.25rem 0.8rem;
  }
  .site-header ul a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-header ul li:last-child a { border-bottom: 0; }
  .menu-open .site-header ul { display: flex; }
}
@media (max-width: 560px) {
  /* Too narrow for logo + button + burger in one row: the button moves into the menu. */
  .site-header nav > .button { display: none; }
  .mobile-cta { display: block; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(140, 43, 35, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.button-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.button-outline:hover { background: var(--accent-soft); color: var(--accent-dark); transform: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(140, 43, 35, 0.07), transparent 60%),
    var(--wash);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}
.hero-inner .eyebrow { margin-bottom: 0.6rem; }
.hero-inner h1 { margin: 0 0 1rem; max-width: 14ch; }
.hero-inner p { color: var(--muted); font-size: 1.12rem; max-width: 46ch; margin: 0 0 1.4rem; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 0.4rem; flex-wrap: wrap; }
.trust {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.trust .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-photo { margin: 0; }
.hero-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding: 2.75rem 1.25rem 3rem; }
  .hero-photo { order: 2; max-width: 560px; }
}

/* ---------- Content bands and cards ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 2.75rem 1.25rem; }
.wide { max-width: 1080px; }
.band { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap, .band-wrap { max-width: 1080px; margin: 0 auto; padding: 3rem 1.25rem; }

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 1.5rem 0; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-2px); }
.card h3 { margin-top: 0; }

/* Numbered process steps ("How we work") */
.steps { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  position: relative;
}
.steps .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.steps h3 { margin: 0 0 0.4rem; }

.mission {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 34ch;
  margin: 0.5rem 0 0;
}

.prose { max-width: 70ch; }
.prose img { border-radius: var(--radius); }

.post-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.post-list li:first-child { border-top: 1px solid var(--line); }
.post-list time { color: var(--muted); font-size: 0.9rem; }
.post-list a { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.post-list a:hover { color: var(--accent); }

.post-meta { color: var(--muted); font-size: 0.95rem; margin-top: 0; }

.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin: 0.75rem 0; background: var(--paper); box-shadow: var(--shadow); }
.review .stars { color: var(--gold); letter-spacing: 0.1em; }
.review .who { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 0;
  background: #201b16;
  color: var(--footer-ink);
  margin-top: 3.5rem;
  padding: 2.75rem 1.25rem 3rem;
  text-align: center;
}
.site-footer p { color: #cfc5b6; max-width: 62ch; margin: 0.4rem auto; }
.site-footer strong { color: var(--footer-ink); }
.site-footer nav { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 0.75rem 0; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.75rem 0;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin: 0 0 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0 0 1.3rem; }
.cta-band .button { background: #fff; color: var(--accent-dark); box-shadow: none; }
.cta-band .button:hover { background: var(--wash); color: var(--accent-dark); transform: translateY(-1px); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .button { transition: none; }
}

/* Menu-only CTA row, shown on small screens */
.mobile-cta { display: none; padding: 0.7rem 0 0.3rem; }
