/* MEC Manufacturing — site styles

   ALL COLORS LIVE HERE. Every page uses this one file, so changing a value below
   recolors the whole site. Never type a color directly into a rule further down —
   add a variable here instead.

   Color scheme: Orange (chosen 2026-10-06 over a grey + yellow "MEC Yellow" option). */
:root {
  --bg: #f4f5f7;            /* page background */
  --surface: #ffffff;       /* cards, panels, light sections */
  --ink: #1b1f24;           /* main text */
  --ink-soft: #55606c;      /* secondary text */
  --steel: #22282f;         /* header, dark sections */
  --steel-2: #2e3640;       /* cards on dark sections */
  --footer: #14181d;        /* footer background */
  --accent: #e8731c;        /* brand color: buttons, highlights */
  --accent-hover: #cf6312;  /* button hover */
  --accent-ink: #ffffff;    /* text ON an accent background */
  --accent-text: #c25d10;   /* accent-colored text on a LIGHT background (needs contrast) */
  --accent-soft: rgba(232,115,28,.12); /* icon tiles */
  --accent-tint: #fff6ee;   /* "Why a form?" box */
  --line: #dde1e6;
  --radius: 10px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--steel);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 700; letter-spacing: .5px;
  text-decoration: none; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.logo img { height: 50px; width: auto; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem;
  opacity: .85; transition: opacity .15s;
}
.nav a:hover, .nav a.active { opacity: 1; }
.nav a.active { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 1.6rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 6px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: transform .1s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.nav .btn { padding: 8px 18px; opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  background:
    /* dark on the left where the text sits, lighter on the right so the parts show */
    linear-gradient(100deg, rgba(20,24,29,.93) 0%, rgba(20,24,29,.82) 45%, rgba(34,40,47,.35) 100%),
    url("../images/hero.jpg") center right/cover, var(--steel-2);
  color: #fff;
  padding: 110px 0 120px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05; margin: 0 0 18px; text-transform: uppercase;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.15rem; max-width: 600px; opacity: .9; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 {
  font-family: var(--font-head); text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px;
}
.section-head p { color: var(--ink-soft); margin: 0; }
.eyebrow {
  display: block; color: var(--accent-text); font-weight: 700;
  font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.card .icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-text);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- Split (about teaser) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .img-ph {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: var(--steel-2) url("../images/shop.jpg") center/cover;
  display: grid; place-items: center; color: #8a96a3; font-size: .9rem;
}
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.split h2 { font-family: var(--font-head); text-transform: uppercase; font-size: 2.2rem; margin: 0 0 14px; }
.split p { color: var(--ink-soft); }

/* ---------- Links to other sites ---------- */
.sites { background: var(--steel); color: #fff; }
.sites .section-head p { color: #aab4bf; }
.site-card {
  display: block; text-decoration: none;
  background: var(--steel-2); border: 1px solid #3a434e;
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.site-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.site-card h3 { margin: 0 0 6px; }
.site-card p { margin: 0 0 14px; color: #aab4bf; }
.site-card .go { color: var(--accent); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 60px 0; }
.cta h2 { font-family: var(--font-head); text-transform: uppercase; font-size: 2.2rem; margin: 0 0 10px; }
.cta p { margin: 0 0 24px; }
.cta .btn { background: var(--steel); color: #fff; }
.cta .btn:hover { background: var(--steel-2); }

/* ---------- Feature band (Jr Dragster) ---------- */
.feature { background: var(--surface); }
.feature ul { padding-left: 1.1em; color: var(--ink-soft); }
.feature li { margin-bottom: 4px; }
.feature .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn-dark { background: var(--steel); color: #fff; }
.btn-dark:hover { background: var(--steel-2); }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--steel); color: #fff; padding: 64px 0 56px; }
.page-hero h1 {
  font-family: var(--font-head); text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 10px;
}
.page-hero p { margin: 0; color: #c3cbd4; max-width: 620px; }

/* ---------- Contact page ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.contact-info { display: grid; gap: 20px; }
.contact-info h3 { margin: 0 0 8px; font-size: 1.1rem; }
.contact-info p { margin: 0 0 16px; color: var(--ink-soft); }
.contact-info .phone { font-size: 1.3rem; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.map iframe { width: 100%; height: 280px; border: 0; border-radius: var(--radius); display: block; }

.why-form {
  background: var(--accent-tint); border-left: 4px solid var(--accent);
  padding: 12px 16px; border-radius: 6px; margin: 0 0 24px; color: var(--ink);
}
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form select,
.contact-form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 12px; border: 1px solid #c9cfd6; border-radius: 6px;
  background: #fff; margin-bottom: 18px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .optin { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 20px; }
.contact-form .optin input { margin-top: 5px; }
.contact-form button[disabled] { opacity: .75; cursor: wait; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 14px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Labels on dark backgrounds use the bright accent instead of the darker text version */
.sites .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--accent); }

/* ---------- Services page ---------- */
.svc-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 8px; }
.svc-nav a {
  text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.svc-nav a:hover { border-color: var(--accent); color: var(--accent-text); }
.svc { padding: 64px 0; scroll-margin-top: 80px; }
.svc:nth-of-type(even) { background: var(--surface); }
.svc .split.flip > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; color: var(--ink); }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--accent-text); font-weight: 700;
}
.steps { counter-reset: step; }
.step { counter-increment: step; position: relative; }
.step::before {
  content: counter(step); position: absolute; top: 20px; left: 28px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700;
}
.step { padding-top: 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips span {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .9rem;
}

/* ---------- About page ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--accent-text); line-height: 1; }
.stat .lbl { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.9rem; margin: 40px 0 10px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li { margin-bottom: 6px; }
.signoff { font-weight: 600; color: var(--ink) !important; }
.placeholder { background: var(--accent-tint); border: 1px dashed var(--accent); padding: 2px 6px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #aab4bf; padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #262d35; margin-top: 32px; padding-top: 18px; text-align: center; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--steel);
    border-bottom: 3px solid var(--accent);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; width: 100%; }
  .nav .btn { margin: 10px 16px 16px; width: auto; text-align: center; }
  .split { grid-template-columns: 1fr; }
  .contact-layout, .form-row { grid-template-columns: 1fr; }
  .svc .split.flip > :first-child { order: 0; }
  .form-row { gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero {
    padding: 72px 0 80px;
    /* text spans the full width on phones, so darken evenly */
    background:
      linear-gradient(rgba(20,24,29,.80), rgba(20,24,29,.80)),
      url("../images/hero.jpg") center/cover, var(--steel-2);
  }
}
