.oh-services {
  padding-block: clamp(28px, 4.7vw, 64px);
}
.oh-services-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 32px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.oh-services-head h2 {
  margin: 0 0 8px;
  color: #1e3a2f;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.02;
}
.oh-services-head p {
  margin: 0;
  color: #464e45;
  line-height: 1.55;
}
.oh-services-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1e3a2f;
  color: #fff8e9;
  font-weight: 650;
}
.oh-services-quote:hover { background: #2e5544; }
.oh-services-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.oh-service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  height: 100%;
  border: 1px solid #d2cbbd;
  border-radius: 14px;
  background: #fffdfa;
  color: #1e3a2f;
  text-decoration: none;
}
.oh-service-card:hover,
.oh-service-card:focus-visible { border-color: #456654; background: #f4f5ed; }
.oh-services a:focus-visible { outline: 3px solid #335744; outline-offset: 3px; }
.oh-service-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
  background: #e5d9c8;
}
.oh-service-card-copy {
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.oh-service-card-copy h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
}
.oh-service-card-copy p {
  margin: 0 0 10px;
  color: #464e45;
  font-size: .9rem;
  line-height: 1.5;
}
.oh-service-action {
  margin-top: auto;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1000px) {
  .oh-services-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .oh-services-list { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .oh-service-card { grid-template: auto / clamp(77px,24vw,117px) minmax(0,1fr); }
  .oh-service-photo { height: 100%; min-height: 104px; aspect-ratio: auto; }
  .oh-service-card-copy h3 { font-size: 1.125rem; }
  .oh-service-card-copy p { margin-bottom: 6px; }
}

.oh-why-home { padding-block: clamp(36px, 5vw, 60px); }
.oh-why-home p:not(.oh-eyebrow) {
  color: #464e45;
  font-size: 1rem;
  line-height: 1.6;
}

.oh-services { padding-block: clamp(30px, 5vw, 58px) clamp(26px, 4vw, 48px); }
.oh-service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px;
  border: 1px solid #d7cfc0;
  border-radius: 14px;
  background: #ece7dc;
}
.oh-service-tabs button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  color: #26392e;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.oh-service-tabs button:hover { background: #fffdfa; }
.oh-service-tabs button[aria-selected="true"] {
  background: #1e3a2f;
  color: #fff8e9;
}
.oh-service-tabs button:focus-visible {
  outline: 2px solid #375745;
  outline-offset: 2px;
}
.oh-services-list--tabbed { display: block; }
.oh-services-list--tabbed > [hidden] { display: none; }
.oh-services-list--tabbed .oh-service-card {
  grid-template: minmax(220px, 1fr) / minmax(0, 1.3fr) minmax(0, 1fr);
  height: auto;
}
.oh-services-list--tabbed .oh-service-photo {
  height: 100%;
  max-height: 290px;
  aspect-ratio: auto;
}
.oh-services-list--tabbed .oh-service-card-copy {
  justify-content: center;
  padding: clamp(20px, 4vw, 54px);
}
.oh-services-list--tabbed .oh-service-card-copy h3 {
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 10px;
}
.oh-services-list--tabbed .oh-service-card-copy p {
  font-size: 1rem;
  margin-bottom: 16px;
}
.oh-services-list--tabbed .oh-service-action {
  align-self: flex-start;
  margin-top: 0;
  font-size: .95rem;
}
.oh-why-home { padding-block-start: clamp(32px, 4vw, 52px); }
@media (max-width: 620px) {
  .oh-service-tabs { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); }
  .oh-service-tabs button { grid-column: span 2; padding-inline: 3px; font-size: .875rem; line-height: 1.2; }
  .oh-service-tabs button:nth-child(n+4) { grid-column: span 3; }
  .oh-services-list--tabbed .oh-service-card { grid-template: 150px auto / minmax(0, 1fr); }
  .oh-services-list--tabbed .oh-service-card-copy { padding: 18px; }
}

/* Let the copy set the desktop row height and crop the photograph to that row. */
.oh-service-media {display:block;position:relative;min-width:0;overflow:hidden}
.oh-services-list--tabbed .oh-service-media .oh-service-photo {
  position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover
}
