/* =====================================================================
   ENGINEERING R&D LANDING PAGE  (/engineering/)
   Built from "Enerthon Solutions - Engineering R&D Landing Page" design.
   Self-contained: does not use the site-wide stylesheets.
   ===================================================================== */
:root {
  --ink: #202024;          /* dark sections */
  --ink-deep: #18181b;     /* footer */
  --ink-card: #2a2b30;     /* cards and form on dark */
  --ink-line: #3e4046;     /* borders on dark */
  --tint: #eef2ec;         /* light green-grey sections and cards */
  --line: #d5ddd3;         /* borders on light */
  --green: #63a86d;        /* accents and buttons on dark */
  --green-dark: #3d7547;   /* accents on light */
  --heading: #353e40;
  --body: #56605b;
  --on-dark: #c9cec6;
  --on-dark-hi: #f1f3ef;
  --on-dark-muted: #a7ada4;
  --btn-ink: #0f1a12;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #fff; color: var(--body);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px;
}
.price-card .btn:focus-visible { outline-color: var(--green-dark); }
.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--green); color: var(--btn-ink); font: 600 14px var(--label); }
.skip-link:focus { left: 0; }
.accent { color: var(--green-dark); }
.dark .accent { color: var(--green); }
.block { display: block; }

/* ---------- type ---------- */
.eyebrow {
  font: 600 13px/1.55 var(--label); letter-spacing: .24em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 14px;
}
.dark .eyebrow { color: var(--green); }
h1 {
  font: 700 clamp(2.5rem, 4.6vw, 4rem)/1.03 var(--serif); color: #fff;
  letter-spacing: -.005em; margin-bottom: 18px;
}
h2 {
  font: 700 clamp(1.9rem, 3.2vw, 2.875rem)/1.15 var(--serif); color: var(--heading);
  letter-spacing: -.005em;
}
.dark h2 { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 6px; border: 1px solid transparent;
  font: 700 15px/1.2 var(--label); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: var(--btn-ink); }
.btn-green:hover { background: #6fb679; }
.btn-outline { border-color: #5c5e65; color: var(--on-dark-hi); background: transparent; font-weight: 600; }
.btn-outline:hover { border-color: var(--on-dark-muted); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2d2e33; }
.btn-small { min-height: 42px; padding: 0 18px; font: 600 13px/1 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo img { width: 156px; }
.header-nav { display: flex; align-items: center; gap: 30px; }
.header-nav > a:not(.btn) {
  font: 500 13px/1 var(--label); letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-dark-hi); text-decoration: none; padding: 8px 0;
}
.header-nav > a:not(.btn):hover { color: var(--green); }

/* ---------- hero ---------- */
.dark { background: var(--ink); color: var(--on-dark); }
.hero { padding: 88px 0 92px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 54px; align-items: center; }
.hero .eyebrow { margin-bottom: 28px; }
.hero .lead { font-size: 19px; line-height: 1.55; color: var(--on-dark); max-width: 548px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 30px; }
.cta-row .btn { min-height: 54px; }
.cta-row .btn-green { padding: 0 26px; }
.hero-note { font-size: 15px; color: var(--on-dark-muted); }
.hero-note strong { color: #fff; font-weight: 600; }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 0% -6% 0% 4%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.10), rgba(255,255,255,0));
}
.hero-media picture, .hero-media img { position: relative; z-index: 1; width: 100%; }

/* ---------- proof strip ---------- */
.strip { background: var(--tint); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.strip-title { font: 700 26px/1.25 var(--serif); color: var(--heading); margin-bottom: 6px; }
.strip p:not(.strip-title) { font-size: 15px; color: var(--body); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.light { background: #fff; }
.tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { max-width: 660px; }
#work .section-head, #work .section-head h2 { max-width: 820px; }
.section-lead { margin-top: 14px; font-size: 17px; color: var(--body); }

/* what we do */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { background: var(--tint); border-radius: var(--radius); padding: 28px; }
.icon {
  display: block; width: 32px; height: 32px; margin-bottom: 10px; fill: none; stroke: var(--green-dark);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 { font: 700 18px/1.35 var(--label); color: var(--heading); margin-bottom: 13px; }
.service-card p { font-size: 16px; line-height: 25px; color: var(--body); }
.step h3 { font: 700 17px/1.35 var(--label); color: var(--heading); margin-bottom: 10px; }
.step p:not(.step-label) { font-size: 15px; line-height: 1.6; color: var(--body); }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.step { background: #fff; border-radius: var(--radius); padding: 24px 22px 26px; }
.step-label { font: 700 12px/1.4 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 10px; }

/* our work */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-card { background: var(--ink-card); border-radius: var(--radius); padding: 32px 30px 34px; }
.work-label { font: 600 12px/1.4 var(--label); letter-spacing: .24em; color: var(--green); margin-bottom: 18px; }
.work-card h3 { font: 700 30px/1.2 var(--serif); color: #fff; margin-bottom: 14px; }
.work-card > p:not(.work-label) { font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.pills { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 6px 13px; border: 1px solid #55575e; border-radius: 999px; font-size: 13.5px; color: var(--on-dark-hi); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 612px); justify-content: space-between; gap: 40px; align-items: start; }
.pricing-copy h2 { margin-bottom: 20px; }
.pricing-copy p:not(.eyebrow) { font-size: 17px; line-height: 1.55; color: var(--body); }
.pricing-copy p + p { margin-top: 14px; }
.price-card { background: var(--tint); border-radius: 14px; padding: 36px; }
.price { font: 700 clamp(2.6rem, 4.5vw, 4rem)/1 var(--serif); color: var(--heading); margin: 6px 0 22px; }
.price-from { font: 400 17px var(--sans); color: var(--body); margin-right: 6px; }
.checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.checks li {
  position: relative; padding-left: 28px; font-size: 16.5px; line-height: 1.45; color: var(--heading);
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7547' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* faq */
.faq-wrap { max-width: 948px; }
.faq-wrap h2 { margin-bottom: 30px; font-size: clamp(1.9rem, 2.8vw, 2.5rem); }
.faq-item { border-top: 1px solid #c6d0c2; padding: 22px 0 24px; }
.faq-item:last-child { border-bottom: 1px solid #c6d0c2; }
.faq-item h3 { font: 700 16.5px/1.4 var(--label); color: var(--heading); margin-bottom: 8px; }
.faq-item p { font-size: 15.5px; line-height: 1.6; color: var(--body); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 648px); justify-content: space-between; gap: 56px; align-items: start; }
.contact-copy h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 3.5vw, 3.125rem); }
.contact-lead { font-size: 17px; line-height: 1.65; color: var(--on-dark); max-width: 480px; }
.contact-phone {
  display: inline-flex; align-items: center; gap: 12px; margin: 30px 0 22px;
  font: 600 20px/1 var(--sans); color: #fff; text-decoration: none;
}
.contact-phone svg { color: var(--green); }
.contact-phone:hover span { text-decoration: underline; }
.contact-copy .btn { display: flex; width: max-content; }

.form-card { background: var(--ink-card); border-radius: 14px; padding: 32px 32px 28px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field label { font: 600 13.5px/1.3 var(--sans); color: var(--on-dark-hi); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 13px; border-radius: 6px;
  border: 1px solid #74777f; background: var(--ink); color: #fff; font: 400 16px/1.4 var(--sans);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(99,168,109,.25); }
.field .invalid, .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e07a68; }
.form-card .btn-block { margin-top: 4px; min-height: 52px; font-size: 15.5px; }
.form-status { min-height: 0; margin-top: 14px; font: 600 15px/1.5 var(--sans); }
.form-status:empty { margin: 0; }
.form-status.ok { color: #8fd09a; }
.form-status.err { color: #f0a090; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--on-dark-muted); }
.form-note a { color: var(--on-dark-hi); }

/* footer */
.site-footer { background: var(--ink-deep); border-top: 1px solid rgba(255,255,255,.08); color: var(--on-dark-muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; font-size: 14px; }
.site-footer .logo img { width: 104px; }
.footer-phone { color: #fff; text-decoration: none; }
.footer-phone:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) and (min-width: 921px) {
  .work-card { padding: 28px 24px 30px; }
  .work-card h3 { font-size: 26px; }
}
@media (max-width: 920px) {
  .header-nav > a:not(.btn) { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero-grid, .pricing-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 28px; }
  .hero-media { max-width: 560px; margin: 0 auto; }
  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: 1fr; }
  .pricing-grid, .contact-grid { gap: 36px; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .logo img { width: 118px; }
  .btn-small { padding: 0 14px; letter-spacing: .06em; }
  .eyebrow { letter-spacing: .18em; }
  .hero .lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .strip-grid, .service-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .strip-grid { gap: 18px; }
  .section { padding: 60px 0; }
  .service-card, .work-card, .price-card { padding: 26px 22px 28px; }
  .form-card { padding: 24px 18px 22px; }
  .contact-copy .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
