/* TIMWOODS — lean training site */
:root {
  --navy: #0b1f3a;
  --navy-mid: #14345c;
  --navy-soft: #1e4a7a;
  --accent: #c9a227;
  --accent-soft: #e8d48b;
  --ink: #1a1a1a;
  --muted: #5a6570;
  --paper: #f7f5f1;
  --white: #ffffff;
  --line: #dde3ea;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(11, 31, 58, 0.12);
  --max: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--navy-soft); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}
.brand span { color: var(--accent); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--accent-soft); }

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 750;
}
.hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--accent-soft);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.portrait {
  justify-self: center;
  width: min(100%, 340px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255,255,255,0.15);
}
.portrait img {
  width: 100%;
  aspect-ratio: 800 / 916;
  object-fit: cover;
  object-position: center top;
}
.portrait-caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Sections */
section { padding: 4rem 0; }
section:nth-child(even of .band) { background: var(--white); }
.band { background: var(--white); }
.band-alt { background: var(--paper); }
.band-navy {
  background: var(--navy);
  color: var(--white);
}
.band-navy a { color: var(--accent-soft); }

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.2;
}
.band-navy .section-title { color: var(--white); }
.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}
.band-navy .section-intro { color: rgba(255,255,255,0.82); }

.about-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.about-grid p { margin: 0 0 1rem; color: var(--ink); }
.about-grid p:last-child { margin-bottom: 0; }
.philosophy {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.philosophy strong { color: var(--navy); display: block; margin-bottom: 0.35rem; }

/* Services */
.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.04);
}
.card h3 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: 1.15rem;
}
.card p, .card ul { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card ul {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}
.card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fffdf5, #fff);
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.15);
}
.card.featured .badge {
  display: inline-block;
  background: var(--navy);
  color: var(--accent-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}
.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.chip {
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* TIMWOODS wastes */
.waste-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 700px) {
  .waste-grid { grid-template-columns: repeat(4, 1fr); }
}
.waste {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.waste .letter {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.waste .name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.waste .desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Contact CTA */
.cta-box {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}
.cta-box p { margin: 0 0 1.5rem; color: var(--muted); }
.note {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer strong { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.cta-box .btn { margin: 0.35rem; }
.cta-box .btn-ghost { color: var(--navy); border-color: var(--navy); }
.cta-box .btn-ghost:hover { background: var(--navy); color: var(--white); }
