/* East Rand Forging — minimalist monochrome theme, matching approved design */

:root {
  --ink: #141414;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg: #ffffff;
  --accent: #8a3b1f; /* used sparingly — link hover / focus only */

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

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

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

header.site {
  padding: 36px 0 0;
  text-align: center;
}

.logo-mark { margin: 0 auto 18px; width: 64px; height: auto; }

.nav-toggle {
  display: none;
}

nav.primary {
  display: flex;
  justify-content: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 8px;
}

nav.primary a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover { border-bottom-color: var(--line); }
nav.primary a.active { border-bottom-color: var(--ink); }

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
    margin: 0 auto 12px;
    background: none;
    border: 1px solid var(--line);
    padding: 8px 14px;
    font-size: 18px;
  }
  nav.primary {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 12px 0; width: 100%; }
}

/* ---------- Hero (home only) ---------- */

.hero { text-align: center; padding: 56px 0 16px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero .tagline {
  font-size: 18px;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Page header (inner pages) ---------- */

.page-hero { text-align: left; padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; }

/* ---------- Generic sections ---------- */

section { padding: 32px 0; }

.lead {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 14px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}
.plain-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

/* Services / feature blocks */
.feature-block { padding: 22px 0; border-top: 1px solid var(--line); }
.feature-block:last-child { border-bottom: 1px solid var(--line); }
.feature-block h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-block p { margin: 0; color: var(--muted); }

.closing-line {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--ink);
  margin-top: 24px;
}

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

.contact-details { margin: 28px 0 40px; }
.contact-details div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
}
.contact-details svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.contact-details a:hover { color: var(--accent); }

form.enquiry {
  max-width: 560px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
form.enquiry label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}
form.enquiry input,
form.enquiry textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
form.enquiry textarea { min-height: 130px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent); }

/* ---------- Photo placeholder ---------- */

.photo-placeholder {
  border: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  padding: 40px 20px;
  text-align: center;
  min-height: 200px;
  margin: 28px 0;
}
.photo-placeholder svg { width: 34px; height: 34px; opacity: 0.7; }
.photo-placeholder span { font-size: 13px; }

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

footer.site {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
footer.site .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 14px;
  color: var(--muted);
}
.social-links {
  position: absolute;
  right: 32px;
  display: flex;
  gap: 14px;
}
.social-links a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-links svg { width: 15px; height: 15px; color: #fff; }

@media (max-width: 560px) {
  footer.site .wrap { flex-direction: column; gap: 14px; }
  .social-links { position: static; }
}

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