/*
  Shared stylesheet for all pages of the Vander Veen Engineering site.
  Plain CSS, no build step, no framework. Loaded by every HTML page via
  <link rel="stylesheet" href="styles.css">.

  Sections below:
    1. Tokens (colors, type, spacing)
    2. Reset / base element styles
    3. Layout helpers
    4. Header & navigation
    5. Buttons
    6. Hero + stats
    7. Two-column text / service cards
    8. Kicker-labeled sections (Background, Credentials)
    9. Bio section (dark)
    10. Contact form
    11. Footer
    12. Responsive
*/

/* 1. Tokens ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Archivo+Expanded:wght@600;700;800&family=Cormorant+SC:wght@500&display=swap');

:root {
  --color-bg: #ffffff;
  --color-surface: #f2f2f2;
  --color-ink: #161616;
  --color-text: #161616;
  --color-text-muted: #464646;
  --color-accent: #8a4b1f;

  --font-display: 'Archivo Expanded', sans-serif;
  --font-heading: 'Archivo', sans-serif;
  --font-body: Helvetica, Arial, sans-serif;
  --font-signature: 'Cormorant SC', serif;

  --rule: 2px solid var(--color-ink);
  --rule-thin: 1px solid var(--color-ink);

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 56px;

  --page-max: 1120px;
}

/* 2. Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* 3. Layout helpers ------------------------------------------------------ */
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.section {
  padding: var(--space-6) 40px;
  border-bottom: var(--rule);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

/* 4. Header & navigation -------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: var(--rule);
}

.site-header .brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
}

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 20px;
  border: 2px solid var(--color-ink);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}

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

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-arrow {
  font-size: 13px;
  font-weight: 700;
}

/* 6. Hero + stats ------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border-bottom: var(--rule);
}

.hero-copy {
  padding: var(--space-6) 40px;
  border-right: var(--rule-thin);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.hero-copy .lede {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-copy .dek {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: var(--space-4);
}

.hero-stats {
  padding: var(--space-6) 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  background: var(--color-surface);
}

.stat-figure {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
}

.stat-label {
  font-size: 12.5px;
  color: #5a5a5a;
}

/* Simple hero used on service pages (no stats column) */
.hero-simple {
  padding: var(--space-6) 40px;
  border-bottom: var(--rule);
}

.hero-simple h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.hero-simple .dek {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* 7. Two-column text / service cards ------------------------------------------ */
.text-pair p {
  font-size: 16px;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--rule);
}

.service-card {
  padding: 36px 40px;
}

.service-card + .service-card {
  border-left: var(--rule-thin);
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

/* Reusable content block: heading + list, used for "what's included" etc. */
.content-block + .content-block {
  margin-top: var(--space-5);
}

.content-block h2 {
  font-size: 22px;
  margin-bottom: var(--space-2);
}

.content-block .dek {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-3);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.check-list li {
  font-size: 15px;
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}

.check-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  border: var(--rule-thin);
  padding: var(--space-3);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.step-list h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.step-list p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 8. Kicker-labeled sections (Background, Credentials) ------------------------ */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px 24px;
  font-size: 14px;
}

/* 9. Bio section (dark) -------------------------------------------------------- */
.bio-section {
  padding: var(--space-6) 40px;
  background: var(--color-ink);
  color: var(--color-surface);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-4);
}

.bio-photo {
  width: 240px;
  height: 290px;
  background: #2a2a2a;
  color: #9a9a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  padding: 12px;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-text {
  max-width: 520px;
  align-self: center;
}

.bio-text p {
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.signature {
  font-family: var(--font-signature);
  font-size: 27px;
}

/* 10. Contact form -------------------------------------------------------------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 640px;
}

.contact-form .field-full {
  grid-column: span 2;
}

.contact-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: var(--rule-thin);
  font-size: 14px;
  font-family: inherit;
}

.contact-form textarea { resize: vertical; }

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

.form-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* 11. Footer ---------------------------------------------------------------------- */
.site-footer {
  padding: var(--space-4) 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.site-footer a { font-weight: 600; color: var(--color-ink); }

/* 12. Responsive -------------------------------------------------------------------- */
@media (max-width: 760px) {
  .wrap,
  .section,
  .hero-copy,
  .hero-stats,
  .hero-simple,
  .service-card,
  .bio-section,
  .site-header,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero,
  .grid-2,
  .service-grid,
  .credentials-grid,
  .check-list,
  .step-list,
  .bio-section,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-copy { border-right: none; border-bottom: var(--rule-thin); }
  .service-card + .service-card { border-left: none; border-top: var(--rule-thin); }

  .contact-form .field-full { grid-column: span 1; }

  .bio-photo { width: 160px; height: 190px; }
}
