/* ── Company page ── */

/* Single 4-column flat grid — ensures images align across both sections */
.compare-flat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1.75rem 1.5rem;
  align-items: stretch;
}

/* Column headers */
.compare-col-header {
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  padding: .875rem 1.5rem;
  margin-bottom: .75rem;
  border-radius: 12px;
  letter-spacing: -.01em;
}
.cfh-span { grid-column: span 2; }
.compare-col-header-problem {
  background: #EAECEE;
  color: #4B5563;
  border: 2px solid #9CA3AF;
}
.compare-col-header-solution {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}

/* Each item: card with flush image top */
.compare-item {
  position: relative;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: visible;
  height: 100%;
}

/* Inner card shell — separate from .compare-item so badge can overhang */
.compare-item-inner {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: box-shadow .25s ease, transform .25s ease;
}
.compare-item:hover .compare-item-inner {
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
  transform: translateY(-3px);
}

/* Problem items: grey border and body */
.compare-item.is-problem .compare-item-inner { border: 2px solid #D1D5DB; }
.compare-item.is-problem .compare-item-body { background: #F9FAFB; }

/* Solution items: teal border and body */
.compare-item.is-solution .compare-item-inner { border: 2px solid rgba(13,122,107,.35); }
.compare-item.is-solution .compare-item-body { background: #F4FAF8; }

/* Image: flush top, no inner border — accent bar provides separation */
.compare-img {
  width: 100%;
  height: 155px;
  overflow: hidden;
  background: var(--off-white);
  flex-shrink: 0;
  border-radius: 0;
  border: none;
  margin-bottom: 0;
  box-shadow: none;
}
.compare-img > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.compare-item:hover .compare-img > img { transform: scale(1.05); }

/* Accent bar between image and body */
.compare-item.is-problem .compare-img  { border-bottom: 4px solid #9CA3AF; }
.compare-item.is-solution .compare-img { border-bottom: 4px solid var(--teal); }

/* Body area */
.compare-item-body {
  padding: 1rem 1.125rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Badge: sits above the card, centered on top edge */
.compare-x, .compare-check {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  border: none;
  padding: 0;
}
.compare-x img, .compare-check img {
  width: 44px; height: 44px;
  object-fit: contain; display: block;
}

/* Text */
.compare-item h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: .375rem;
  line-height: 1.3; text-align: left;
}
.compare-item p {
  font-size: .875rem; color: var(--text-body);
  line-height: 1.6; margin: 0; text-align: left;
}
.compare-item.is-solution h3 { color: var(--teal); }

/* Mission / Vision / Values */
.mvv-section { background: var(--grey-bg); padding: 4rem 1.5rem; }
.mvv-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.mvv-card { text-align: center; padding: 1.5rem; }
.mvv-icon { font-size: 2.25rem; margin-bottom: 1rem; justify-content: center; display: flex; }
.mvv-card h3 { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: .75rem; }
.mvv-card p { font-size: 1rem; color: white; line-height: 1.65; }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.75rem; }
.why-card {
  background: white;
  border: 2px solid #D1D5DB;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: box-shadow .25s ease, transform .25s ease;
}
.why-card:hover {
  box-shadow: 0 8px 28px rgba(13,122,107,.15);
  transform: translateY(-3px);
}
.why-img {
  height: 180px; overflow: hidden;
  border-radius: 0; border: none;
  border-bottom: 4px solid var(--teal);
  margin-bottom: 0; flex-shrink: 0;
}
.why-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.why-card:hover .why-img img { transform: scale(1.05); }
.why-card h3 { font-size: 1rem; font-weight: 700; padding: 1.125rem 1.125rem .375rem; text-align: left; background: #F4FAF8; }
.why-card p { font-size: .875rem; color: var(--text-body); padding: 0 1.125rem 1.25rem; line-height: 1.6; text-align: left; flex: 1; background: #F4FAF8; }

@media(max-width:1100px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:1100px) { .compare-flat-grid { grid-template-columns: 1fr 1fr; } .cfh-span { grid-column: span 1; } }
@media(max-width:900px) {
  .compare-flat-grid { grid-template-columns: 1fr 1fr; }
  .cfh-span { grid-column: span 2; }
  .mvv-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:600px) {
  .compare-flat-grid { grid-template-columns: 1fr; }
  .cfh-span { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr; }

  /* Reorder so: Problems header → Problem cards → Solutions header → Solution cards */
  .compare-col-header-problem  { order: 1; }
  .compare-item.is-problem     { order: 2; }
  .compare-col-header-solution { order: 3; }
  .compare-item.is-solution    { order: 4; }
}