/* Silfrai — site styles */

:root {
  --brand: #84a7b8;        /* brand slate blue — accents only (too light for text) */
  --brand-strong: #3e6274; /* darkened brand slate — links, buttons (AA on light bg) */
  --brand-deeper: #33525f; /* hover state */
  --ink: #1a1f24;
  --muted: #46525b;
  --bg: #f7f8f9;
  --surface: #ffffff;
  --navy: #1a2b3c;         /* deep slate from the brand mark */
  --navy-ink: #dbe4ea;     /* light text on navy */
  --line: #e2e7ea;
  --radius: 10px;
  --max: 68rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-strong); }
a:hover { color: var(--brand-deeper); }

:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 7px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--brand-strong); }

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

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--brand-strong);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deeper); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--brand-strong);
  border-color: var(--brand-strong);
}
.btn-secondary:hover { background: rgba(132, 167, 184, 0.14); color: var(--brand-deeper); }

.btn-large { padding: 0.85rem 1.7rem; font-size: 1.05rem; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 6rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-mark {
  position: absolute;
  right: -6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30rem;
  height: 30rem;
  opacity: 0.06;
  pointer-events: none;
}

.hero .wrap { position: relative; max-width: 54rem; }

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

.hero .subhead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 2.2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Sections ---------- */

section { padding: 5.5rem 0; }

.section-intro {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 46rem;
  margin: 0 0 3rem;
}

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 0.9rem;
}

/* ---------- What we do ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.9rem 1.7rem;
  border-top: 3px solid var(--brand);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

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

/* ---------- How we work ---------- */

.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2.5rem;
}

.principles li {
  padding-left: 1.4rem;
  border-left: 3px solid var(--brand);
}

.principles h3 { margin: 0 0 0.35rem; font-size: 1.12rem; }
.principles p { margin: 0; color: var(--muted); }

/* ---------- Mission ---------- */

.mission {
  background: var(--brand-strong);
  color: #fff;
}

.mission .wrap { max-width: 52rem; }

.mission .eyebrow { color: #cfe0e8; }

.mission blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2.75rem;
  align-items: start;
}

.about-grid img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.about-grid h2 { margin-top: 0; }
.about-grid p { color: var(--ink); max-width: 44rem; }

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

.contact {
  background: var(--surface);
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.7rem;
}

.contact p { color: var(--muted); margin: 0 0 2rem; }

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

.site-footer {
  background: var(--navy);
  color: var(--navy-ink);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.95rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.25rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; }
.footer-brand img { width: 1.9rem; height: 1.9rem; border-radius: 6px; }
.footer-brand .wordmark { font-size: 1.02rem; }

.footer-tagline { margin: 0.6rem 0 0; color: var(--navy-ink); }

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand); }
.site-footer :focus-visible { outline-color: var(--brand); }

.footer-bottom {
  border-top: 1px solid rgba(219, 228, 234, 0.2);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

.footer-bottom p { margin: 0; }

/* ---------- Legal pages ---------- */

.page { padding: 4.5rem 0 5.5rem; min-height: 55vh; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.page .updated { color: var(--muted); font-size: 0.95rem; }

/* ---------- Motion (JS-gated; respects reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  html.js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 47.9rem) {
  section { padding: 3.75rem 0; }
  .hero { padding: 4.25rem 0 4rem; }
  .hero-mark { display: none; }
  .cards, .principles { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { max-width: 13rem; }
  .header-cta { display: none; }
  .site-nav ul { gap: 1rem; }
  .site-nav a { font-size: 0.9rem; }
  .wordmark { letter-spacing: 0.14em; }
}
