/* ============================================================
   AME v4 — Inner-page styles (services, manufacturing, industries, about)
   Depends on v4-home.css (tokens, typography, buttons, nav, footer)
   ============================================================ */

/* ---- Page hero (shorter than homepage hero) ---- */
body.v4 .v4-page-hero {
  position: relative;
  padding-top: 250px;
  padding-bottom: 100px;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
body.v4 .v4-page-hero-bg {
  position: absolute; inset: 0;
  background-image: url('photos/engineering-bg.webp');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
body.v4 .v4-page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(15, 23, 42, 0.82) 50%,
    rgba(15, 23, 42, 0.92) 100%
  );
  z-index: -1;
}
body.v4 .v4-page-hero .v4-h1 { color: #FFFFFF; max-width: 22ch; }
body.v4 .v4-page-hero .v4-hero-lede { color: rgba(255,255,255,0.82); margin: 20px 0 0; }

/* Per-page hero photo overrides */
body.v4.page-services      .v4-page-hero-bg { background-image: url('photos/engineering-bg.webp'); }
body.v4.page-manufacturing .v4-page-hero-bg { background-image: url('photos/cover-hoses.webp'); }
body.v4.page-industries    .v4-page-hero-bg { background-image: url('photos/ame-truck.webp'); }
body.v4.page-about         .v4-page-hero-bg { background-image: url('photos/team-vibration.webp'); }

/* ---- Service section — image left/right + body ---- */
body.v4 .v4-svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 880px) {
  body.v4 .v4-svc-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
body.v4 .v4-svc-grid--reverse .v4-svc-media { order: 2; }
@media (max-width: 879px) {
  body.v4 .v4-svc-grid--reverse .v4-svc-media { order: 0; }
}

body.v4 .v4-svc-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--v4-bg-alt);
}
body.v4 .v4-svc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
body.v4 .v4-svc-media-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--f-v4-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(15, 23, 42, 0.78);
  padding: 8px 12px;
}

body.v4 .v4-svc-body { display: flex; flex-direction: column; gap: 20px; }
body.v4 .v4-svc-body .v4-h3 { color: var(--v4-ink); }
body.v4 .v4-section-dark .v4-svc-body .v4-h3 { color: #FFFFFF; }
body.v4 .v4-section-dark .v4-svc-body { color: rgba(255,255,255,0.78); }

body.v4 .v4-svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body.v4 .v4-svc-list li {
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid var(--v4-rule);
  color: var(--v4-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
body.v4 .v4-svc-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 6px; height: 6px;
  background: var(--v4-orange);
  border-radius: 50%;
}
body.v4 .v4-section-dark .v4-svc-list li {
  color: rgba(255,255,255,0.78);
  border-bottom-color: rgba(255,255,255,0.14);
}

body.v4 .v4-svc-fit {
  font-size: 16px;
  line-height: 1.55;
  color: var(--v4-text-mute);
  margin-top: 4px;
}
body.v4 .v4-section-dark .v4-svc-fit { color: rgba(255,255,255,0.55); }
body.v4 .v4-svc-fit strong { color: var(--v4-ink); font-weight: 600; }
body.v4 .v4-section-dark .v4-svc-fit strong { color: #FFFFFF; }

/* ---- Inline method grid (used inside maintenance section) ---- */
body.v4 .v4-method-grid--inline {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(255,255,255,0.14);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  margin: 0;
}
@media (min-width: 600px) { body.v4 .v4-method-grid--inline { grid-template-columns: repeat(2, 1fr); } }
body.v4 .v4-method-grid--inline .v4-method-step { padding: 28px 24px; }

/* ---- Industry sector cards ---- */
body.v4 .v4-sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px)  { body.v4 .v4-sector-grid { grid-template-columns: repeat(2, 1fr); } }

body.v4 .v4-sector {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--v4-ink);
  color: #FFFFFF;
}
body.v4 .v4-sector img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.4s, transform 0.7s var(--v4-ease);
}
body.v4 .v4-sector::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15,23,42,0.95) 100%);
}
body.v4 .v4-sector:hover img { opacity: 0.7; transform: scale(1.03); }

body.v4 .v4-sector-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px;
  z-index: 1;
}
body.v4 .v4-sector-num {
  font-family: var(--f-v4-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v4-orange);
  margin-bottom: 12px;
}
body.v4 .v4-sector-title {
  font-family: var(--f-v4);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 8px;
}
body.v4 .v4-sector-desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  max-width: 38ch;
}

/* ---- Manufacturing range list ---- */
body.v4 .v4-range-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 960px) { body.v4 .v4-range-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

body.v4 .v4-range-list { display: flex; flex-direction: column; border-top: 1px solid var(--v4-rule); }
body.v4 .v4-range-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--v4-rule);
  align-items: start;
}
body.v4 .v4-range-num {
  font-family: var(--f-v4-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--v4-orange);
  padding-top: 4px;
}
body.v4 .v4-range-row h3 {
  font-weight: 700;
  font-size: 20px;
  color: var(--v4-ink);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
body.v4 .v4-range-row p {
  font-size: 16px;
  color: var(--v4-text);
  line-height: 1.5;
}

body.v4 .v4-range-stack { display: flex; flex-direction: column; gap: 16px; }
body.v4 .v4-range-stack img { width: 100%; height: auto; display: block; }
body.v4 .v4-range-stack .v4-tile-dark {
  background: var(--v4-ink);
  color: #FFFFFF;
  padding: 28px 24px;
}
body.v4 .v4-range-stack .v4-tile-dark .label {
  font-family: var(--f-v4-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v4-orange);
  margin-bottom: 8px;
}
body.v4 .v4-range-stack .v4-tile-dark .big {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* ---- Reasons grid (manufacturing) ---- */
body.v4 .v4-reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--v4-rule);
}
@media (min-width: 720px)  { body.v4 .v4-reasons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { body.v4 .v4-reasons-grid { grid-template-columns: repeat(4, 1fr); } }

body.v4 .v4-reason {
  padding: 32px 24px;
  border-right: 1px solid var(--v4-rule);
  border-bottom: 1px solid var(--v4-rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 719px) { body.v4 .v4-reason { border-right: none; } }
body.v4 .v4-reason-num {
  font-family: var(--f-v4-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--v4-orange);
}
body.v4 .v4-reason h3 {
  font-weight: 700;
  font-size: 19px;
  color: var(--v4-ink);
  letter-spacing: -0.015em;
}
body.v4 .v4-reason p { font-size: 16px; line-height: 1.55; color: var(--v4-text); }

/* ---- Story (about page) ---- */
body.v4 .v4-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 960px) { body.v4 .v4-story-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
body.v4 .v4-story-grid img { width: 100%; height: auto; display: block; }
body.v4 .v4-story-body { display: flex; flex-direction: column; gap: 24px; font-size: 16px; line-height: 1.6; color: var(--v4-text); }
body.v4 .v4-story-body p strong { color: var(--v4-ink); font-weight: 600; }

/* ---- Values grid (about page) ---- */
body.v4 .v4-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--v4-rule);
}
@media (min-width: 760px)  { body.v4 .v4-values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { body.v4 .v4-values-grid { grid-template-columns: repeat(4, 1fr); } }
body.v4 .v4-value {
  padding: 36px 28px 40px;
  border-right: 1px solid var(--v4-rule);
  border-bottom: 1px solid var(--v4-rule);
}
@media (max-width: 759px) { body.v4 .v4-value { border-right: none; } }
body.v4 .v4-value-num {
  font-family: var(--f-v4-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--v4-orange);
  margin-bottom: 32px;
}
body.v4 .v4-value h3 {
  font-weight: 700;
  font-size: 24px;
  color: var(--v4-ink);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.15;
}
body.v4 .v4-value p { font-size: 16px; line-height: 1.55; color: var(--v4-text); }

/* ---- Contact form (about page) ---- */
body.v4 .v4-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 960px) { body.v4 .v4-contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

body.v4 .v4-contact-info { display: flex; flex-direction: column; gap: 32px; }
body.v4 .v4-contact-line {
  border-top: 1px solid var(--v4-rule);
  padding-top: 16px;
}
body.v4 .v4-contact-line .lbl {
  font-family: var(--f-v4-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v4-text-mute);
  margin-bottom: 4px;
}
body.v4 .v4-contact-line a,
body.v4 .v4-contact-line span {
  font-size: 18px;
  font-weight: 500;
  color: var(--v4-ink);
}
body.v4 .v4-contact-line a:hover { color: var(--v4-orange); }

body.v4 .v4-form { display: flex; flex-direction: column; gap: 20px; }
body.v4 .v4-field { display: flex; flex-direction: column; gap: 6px; }
body.v4 .v4-field label {
  font-family: var(--f-v4-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v4-text-mute);
  font-weight: 600;
}
body.v4 .v4-field label .req { color: var(--v4-orange); }
body.v4 .v4-field input,
body.v4 .v4-field select,
body.v4 .v4-field textarea {
  padding: 14px 16px;
  border: 1px solid var(--v4-rule-strong);
  border-radius: 2px;
  background: #FFFFFF;
  font-family: var(--f-v4);
  font-size: 16px;
  color: var(--v4-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
body.v4 .v4-field input:focus,
body.v4 .v4-field select:focus,
body.v4 .v4-field textarea:focus {
  outline: none;
  border-color: var(--v4-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.16);
}
body.v4 .v4-field textarea { resize: vertical; min-height: 120px; }
body.v4 .v4-form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { body.v4 .v4-form-row { grid-template-columns: 1fr 1fr; } }
body.v4 .v4-form-note { font-size: 13px; color: var(--v4-text-mute); margin-top: 8px; line-height: 1.5; }
body.v4 .v4-form-note a { color: var(--v4-orange); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Footprint visual ---- */
body.v4 .v4-footprint-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--v4-rule);
}
@media (min-width: 760px) { body.v4 .v4-footprint-row { grid-template-columns: repeat(2, 1fr); gap: 80px; } }

/* ---- Value icons (about page) ---- */
body.v4 .v4-value-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  color: var(--v4-orange);
}
body.v4 .v4-value-icon svg { width: 100%; height: 100%; display: block; }
/* When icon is present, hide the v4-value-num to avoid duplication */
body.v4 .v4-value:has(.v4-value-icon) .v4-value-num { display: none; }

/* ============================================================
   SECTION WATERMARK — used on Mechanical Design (Service 04)
   to display the hydraulic circuit diagram subtly behind content
   ============================================================ */
body.v4 .v4-section-with-watermark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
body.v4 .v4-watermark {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: right 5% center;
  background-size: clamp(280px, 36vw, 540px) auto;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
body.v4 .v4-section-with-watermark > .v4-container {
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  body.v4 .v4-watermark {
    background-position: center;
    background-size: 80%;
    opacity: 0.05;
  }
}

/* ============================================================
   LEDE UNDER HEADLINE — global utility
   Used inside .v4-section-head title block so the lede sits directly
   under the h2 instead of in a right column.
   ============================================================ */
body.v4 .v4-lede-under {
  margin-top: 20px;
  max-width: 64ch;
}
body.v4 .v4-section-dark .v4-lede-under { color: rgba(255,255,255,0.78); }
