/* Selway Solutions — corporate site
 * Light, calm, serif-headed. Distinct from product properties (which use
 * darker / more accent-driven aesthetics). The corporate parent reads as
 * the quieter "above" layer, not as a sibling of the products.
 */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --border: #E8E3D6;
  --border-soft: #F0EBDF;
  --text: #1A1A1A;
  --text-dim: #4F4F4A;
  --text-muted: #8B8B82;
  --accent: #2D5F3F;          /* muted forest green — nods to silvaculture origin */
  --accent-soft: rgba(45, 95, 63, 0.08);
  --accent-hover: #3D7F4F;
  --shadow-sm: 0 1px 3px rgba(20, 30, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 30, 20, 0.06);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow { max-width: 720px; }

/* ---------- Header ---------- */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-suffix {
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 4px;
}
.site-header nav a {
  margin-left: 28px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 56px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  max-width: 820px;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
}
.hero p.lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

main section {
  padding: 56px 0;
}

/* ---------- Product cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: block;
  color: var(--text);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.card .tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}
.card p {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0 0 16px;
  line-height: 1.6;
}
.card-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.card:hover .card-link { color: var(--accent-hover); }

/* ---------- About / Contact ---------- */
#about p,
#contact p {
  font-size: 16.5px;
  color: var(--text-dim);
  margin: 0 0 18px;
  line-height: 1.7;
}

#contact a {
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 72px;
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; gap: 14px; align-items: flex-start; }
  .site-header nav { display: flex; flex-wrap: wrap; gap: 0; }
  .site-header nav a { margin-left: 0; margin-right: 20px; }
  .hero { padding: 56px 0 32px; }
  main section { padding: 40px 0; }
}
