/* Sift & Winnow: site styles */

:root {
  --ink: #0a0a0a;
  --ink-soft: #525252;
  --paper: #ffffff;
  --paper-alt: #f5f5f4;
  --line: #e5e5e3;
  --accent: #0a0a0a;
  --muted-on-dark: #a3a3a3;
  --dark: #0a0a0a;
  --dark-2: #171717;
  --white: #ffffff;

  --font-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 10vw, 112px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.nowrap { white-space: nowrap; }

a { color: inherit; }

img, svg { display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover { background: #262626; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn-light:hover { background: #e5e5e5; border-color: #e5e5e5; }

.btn-small { padding: 0.65em 1.2em; font-size: 0.875rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 26px;
}

.brand-name {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, background 0.2s;
}

.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav .btn { margin-top: 16px; text-align: center; }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; object-position: 50% 70%; }
}

.lede {
  max-width: 620px;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

/* Sections */

.section { padding: var(--section) 0; }
.section-alt { background: var(--paper-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head p:last-child { color: var(--ink-soft); }

/* Service cards */

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

.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(31, 42, 36, 0.35);
}

.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.card-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--paper-alt);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.step-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.step h3 { font-size: 1.5rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* About */

.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-copy p { color: var(--ink-soft); }

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 16px;
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(10, 10, 10, 0.3);
}

.value-icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  margin-bottom: 14px;
  border-radius: 7px;
  background: var(--paper-alt);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.values h3 { font-size: 1rem; margin-bottom: 0.35em; }
.values p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .values { grid-template-columns: 1fr; }
}

/* Contact */

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark .eyebrow { color: var(--muted-on-dark); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
}

.contact-copy > p { color: #d4d4d4; }

.contact-details {
  display: grid;
  gap: 18px;
  margin: 2rem 0 0;
}

.contact-details dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.contact-details dd { margin: 2px 0 0; font-size: 1.1rem; }
.contact-details a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.contact-details a:hover { border-bottom-color: var(--white); }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.field { display: grid; gap: 6px; }

.field label { font-size: 0.9rem; font-weight: 500; }
.optional { color: var(--muted-on-dark); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.field select option { color: var(--ink); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.field textarea { resize: vertical; min-height: 120px; }

.contact-form .btn { justify-self: start; }

.form-note { margin: 0; font-size: 0.9rem; color: #d4d4d4; min-height: 1.4em; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}

/* Footer */

.site-footer {
  padding: 40px 0;
  background: var(--dark);
  border-top: 1px solid #262626;
  color: var(--muted-on-dark);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-logo { width: 150px; height: auto; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--white); }

/* Legal pages */

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal p { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal a { text-underline-offset: 3px; }
.legal-updated { font-size: 0.9rem; }

/* Pages without the mobile menu keep their nav visible at every width */
@media (max-width: 760px) {
  .site-nav-static {
    position: static;
    display: flex;
    padding: 0;
    border: 0;
    background: none;
  }

  .site-nav-static a:not(.btn) { padding: 0; border: 0; font-size: 0.95rem; white-space: nowrap; }
}

.hidden-field { display: none; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }

/* School safety & operations */

.security {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.security-copy p { color: var(--ink-soft); }

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li { padding-top: 18px; border-top: 1px solid var(--ink); }
.feature-list h3 { font-size: 1rem; margin-bottom: 0.35em; }
.feature-list p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .security { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .feature-list { grid-template-columns: 1fr; }
}
