/*
 * JGRobo Marketing, Inc. surgical visual refinement v1.2
 * Scope: approved page-specific heading, card, CTA, and team-placeholder corrections.
 */

/* Homepage: give the requested desktop headings the full editorial measure. */
body.page-id-5 .jgr-b2-capabilities .jgr-b2-section-head,
body.page-id-5 .jgr-b2-industries .jgr-b2-section-head,
body.page-id-5 .jgr-b3-solutions .jgr-b3-section-head {
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  align-items:start;
}
body.page-id-5 .jgr-b2-capabilities .jgr-section-intro,
body.page-id-5 .jgr-b2-industries .jgr-section-intro,
body.page-id-5 .jgr-b3-solutions .jgr-section-intro {
  max-width:820px;
}
body.page-id-5 .jgr-b2-why-intro {
  margin:0 0 clamp(42px,5vw,62px);
}
body.page-id-5 .jgr-b2-why-intro #jgr-why-title {
  max-width:none;
  margin:12px 0 0;
}

/* The six supporting industry tiles had zero effective padding in the render. */
html body.page-id-5 .jgr-b2-industry-tiles .jgr-industry-tile {
  position:relative;
  box-sizing:border-box;
  padding:32px 32px 34px !important;
}
html body.page-id-5 .jgr-b2-industry-tiles .jgr-industry-tile > .jgr-tile-icon,
html body.page-id-5 .jgr-b2-industry-tiles .jgr-industry-tile > h3,
html body.page-id-5 .jgr-b2-industry-tiles .jgr-industry-tile > p {
  position:relative;
  left:auto !important;
  right:auto !important;
  width:auto;
  max-width:100%;
  margin-left:0 !important;
  margin-right:0 !important;
  transform:none !important;
}
html body.page-id-5 .jgr-b2-industry-tiles .jgr-industry-tile > .jgr-tile-icon {
  margin-bottom:18px !important;
}
html body.page-id-5 .jgr-b2-industry-tiles .jgr-industry-tile > h3 {
  margin-top:0 !important;
  margin-bottom:10px !important;
}

body.page-id-5 .jgr-b3-final-inner {
  grid-template-columns:minmax(0,1.16fr) minmax(330px,390px);
}
body.page-id-5 #jgr-final-title {
  max-width:780px;
}
.jgr-surgical-desktop-break { display:block; }

/* AI Voice Agents: remove the orphaned support column and balance two final actions. */
body.page-id-58 #capabilities .c1-voice-operation-head {
  grid-template-columns:minmax(0,1fr);
  gap:0;
  align-items:start;
}
body.page-id-58 .c1-voice-final-cta .c1-cta-inner {
  grid-template-columns:minmax(0,1fr);
  gap:34px;
}
body.page-id-58 .c1-voice-final-cta #voice-cta {
  max-width:none;
}
body.page-id-58 .c1-voice-final-cta .c1-cta-actions,
body.page-id-58 .c1-voice-final-cta .jgr-actions {
  justify-content:flex-start;
}

/* Automation & CRM: one-line desktop problem heading without changing the rail. */
body.page-id-60 #auto-problem {
  max-width:none;
  font-size:clamp(36px,3.35vw,44px);
}

/* Solutions: remove hero dead space and keep the closing actions clear of the copy. */
body.page-id-108 .c2-hero {
  min-height:0;
  padding-bottom:46px;
}
body.page-id-108 .c2-hero-grid {
  align-items:end;
}
body.page-id-108 .c2-hero-grid > p:empty {
  display:none;
}
body.page-id-108 .c2-industries .c2-section-head {
  display:grid !important;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  align-items:start;
}
body.page-id-108 .c2-industries .c2-section-head > p {
  max-width:820px;
}
body.page-id-108 #industry-applications {
  max-width:900px;
}
body.page-id-108 #a2c-title {
  max-width:560px;
}
body.page-id-108 .c2-final-grid {
  gap:clamp(72px,8vw,108px);
  align-items:start;
}
body.page-id-108 .c2-final-actions {
  align-self:end;
  margin-top:34px;
}

/* About: deliberate action gutters and six equal photo-reservation areas. */
body.page-id-110 .c2-hero .jgr-actions {
  display:flex !important;
  column-gap:24px;
  row-gap:16px;
}
body.page-id-110 .c2-team-card {
  overflow:hidden;
}
body.page-id-110 .c2-team-portrait {
  display:grid;
  width:100%;
  min-height:220px;
  aspect-ratio:16 / 10;
  place-content:center;
  gap:12px;
  text-align:center;
}
body.page-id-110 .c2-team-portrait small {
  display:block;
  color:#ccecf7;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body.page-id-110 .c2-a2c-action {
  align-self:end;
  margin-top:28px;
}

/* Contact: keep the AI-first choices clearly below and apart from the copy. */
body.page-id-49 .jgc-alt-actions {
  align-self:end;
  margin-top:30px;
  padding-top:48px;
  box-sizing:border-box;
}

@media (min-width:1180px) {
  body.page-id-5 #jgr-services-title {
    max-width:none;
    font-size:clamp(42px,3.65vw,48px);
    white-space:nowrap;
  }
  body.page-id-5 #jgr-why-title {
    font-size:34px;
    line-height:1.1;
    letter-spacing:-.025em;
    white-space:nowrap;
  }
  body.page-id-5 .jgr-b2-industries .jgr-b2-section-head h2 {
    max-width:none;
    font-size:40px;
    white-space:nowrap;
  }
  body.page-id-5 #jgr-solutions-title {
    max-width:none;
    font-size:44px;
    white-space:nowrap;
  }
  body.page-id-5 #jgr-final-title {
    font-size:64px;
    line-height:1.02;
  }
  body.page-id-58 .c1-voice-final-cta #voice-cta {
    font-size:48px;
    white-space:nowrap;
  }
  body.page-id-60 #auto-problem {
    white-space:nowrap;
  }
}

@media (max-width:1024px) {
  body.page-id-5 .jgr-b2-why-intro { margin-bottom:34px; }
  body.page-id-5 .jgr-b3-final-inner,
  body.page-id-108 .c2-final-grid { grid-template-columns:1fr; gap:34px; }
  body.page-id-108 .c2-final-actions,
  body.page-id-110 .c2-a2c-action,
  body.page-id-49 .jgc-alt-actions { align-self:start; margin-top:8px; padding-top:0; }
}

@media (max-width:720px) {
  .jgr-surgical-desktop-break { display:none; }
  html body.page-id-5 .jgr-b2-industry-tiles .jgr-industry-tile {
    padding:28px 27px 30px !important;
  }
  body.page-id-110 .c2-hero .jgr-actions { gap:14px; }
  body.page-id-110 .c2-hero .jgr-actions .jgr-btn { width:100%; }
  body.page-id-110 .c2-team-portrait { min-height:200px; }
}

@media (max-width:390px) {
  html body.page-id-5 .jgr-b2-industry-tiles .jgr-industry-tile {
    padding:24px !important;
  }
  body.page-id-110 .c2-team-portrait { min-height:180px; }
}

@media (prefers-reduced-motion:reduce) {
  body.page-id-5 .jgr-b2-industry-tiles .jgr-industry-tile,
  body.page-id-110 .c2-team-card { transition:none !important; }
}
