/* ==========================================================================
   Engineered Production Components — site styles
   Plain CSS, no dependencies. Edit color variables below to re-theme.
   ========================================================================== */

:root {
  --brand:        #004b36;   /* deep pine green (from logo ink) */
  --brand-dark:   #003526;
  --accent:       #c9902f;   /* warm gold (CTA) */
  --accent-dark:  #a9781f;
  --ink:          #1a1a1a;
  --muted:        #5b6470;
  --line:         #e3e8e5;
  --bg:           #ffffff;
  --bg-alt:       #f3f7f4;
  --max:          1140px;
  --radius:       8px;
  --shadow:       0 2px 10px rgba(0,53,38,.10);
  --font:         "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
}

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

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

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-name { font-weight: 700; color: var(--brand); font-size: 1.05rem; line-height: 1.2; }

.nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: var(--ink); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-links a.active { color: var(--brand); border-bottom: 3px solid var(--accent); border-radius: 0; }

/* mobile menu toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--brand); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 13px 28px; border-radius: var(--radius); font-weight: 700;
  letter-spacing: .3px; border: 0; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background:
    linear-gradient(rgba(0,53,38,.80), rgba(0,53,38,.84)),
    url("https://engprocom.com/wp-content/uploads/2018/07/manufacturing.jpg") center/cover no-repeat;
  padding: 110px 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 14px; }
.hero p { font-size: clamp(1.05rem, 2.5vw, 1.4rem); max-width: 760px; margin: 0 auto 28px; color: #eef2f6; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin: 0 0 8px; color: var(--brand); font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 40px; }

.page-head { background: var(--brand); color: #fff; padding: 54px 0; text-align: center; }
.page-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .card-body { padding: 22px; }
.card h3 { margin: 0 0 10px; color: var(--brand); }
.card p { margin: 0 0 16px; color: var(--muted); }
.card a { font-weight: 700; }

/* industries served chips */
.industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 8px; }
.industry {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow);
}
.industry img { height: 120px; width: 100%; object-fit: cover; }
.industry span { display: block; padding: 10px 12px; font-weight: 600; font-size: .9rem; text-align: center; color: var(--brand); }

/* ---------- Service blocks (single services page) ---------- */
.service { padding: 56px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(even) { background: var(--bg-alt); }
.service h2 { color: var(--brand); font-size: 1.7rem; margin: 0 0 6px; }
.service .lead { color: var(--muted); max-width: 900px; }
.service-hero-img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 18px 0 26px; max-height: 340px; width: 100%; object-fit: cover; }
.subhead { color: var(--brand); font-size: 1.2rem; margin: 34px 0 14px; border-left: 4px solid var(--accent); padding-left: 12px; }

/* partner rep block */
.rep {
  display: flex; gap: 22px; align-items: center; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); margin-top: 20px; flex-wrap: wrap;
}
.rep img { max-width: 220px; max-height: 90px; object-fit: contain; }
.rep p { margin: 0; flex: 1 1 320px; color: var(--muted); }

/* jump-nav for services */
.jump {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px;
}
.jump a {
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--brand);
}
.jump a:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------- Team (about) ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.member { text-align: center; }
.member img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; box-shadow: var(--shadow); }
.member h3 { margin: 0 0 6px; color: var(--brand); }

/* ---------- Partners logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; }
.logo-wall figure {
  margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; display: flex; align-items: center; justify-content: center; min-height: 160px;
}
.logo-wall img { max-height: 100px; width: auto; object-fit: contain; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--brand); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 1rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.info-line { margin: 0 0 14px; }
.info-line strong { color: var(--brand); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 56px 20px; }
.cta-band h2 { margin: 0 0 20px; font-size: clamp(1.5rem, 3.5vw, 2rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #cdd6df; padding: 40px 0; font-size: .92rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #fff; }
.site-footer .foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .team { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 20px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .grid-3, .grid-2, .logo-wall { grid-template-columns: 1fr; }
}
