/* =============================================
   Service Page CSS — individual service pages
   ============================================= */

/* === Service Intro === */
.service-intro {
  padding: 3rem 0 2.5rem;
}

.service-intro p {
  font-size: 1.0625rem;
  color: var(--text);
  max-width: 800px;
  line-height: 1.7;
}

/* === Service Content Sections === */
.service-content {
  padding: 3rem 0;
}

.service-content h2 {
  margin-bottom: 1rem;
}

.service-content p {
  color: var(--text);
  line-height: 1.7;
  max-width: 800px;
}

.service-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text);
}

.service-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* === Service Two-Column (text + image or text + list) === */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.service-split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-split__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service-split--applications {
  margin-top: 1.75rem;
  align-items: center;
}

.service-split__media--applications {
  background-color: var(--light);
}

.service-split__media--applications img {
  object-fit: contain;
  max-height: 360px;
}

.service-external-cta {
  margin-top: 1.75rem;
}

.service-list--single-col {
  grid-template-columns: 1fr;
}

/* === Phone systems — naeem-style feature bands (two-column + stacked images) === */
.phone-feat-section {
  padding: 4rem 0;
}

.phone-feat-section--alt {
  background-color: var(--light);
}

.phone-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 3.5rem;
  align-items: center;
}

/* Grandstream collage: image column height matches in-flow text column (absolute right column) */
.phone-feat-grid--grandstream {
  position: relative;
  display: block;
}

.phone-feat-grid--grandstream .phone-feat-text {
  width: calc((100% - 3.5rem) / 2);
  max-width: calc((100% - 3.5rem) / 2);
}

.phone-feat-grid--grandstream .phone-feat-images--grandstream {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc((100% - 3.5rem) / 2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-feat-grid--grandstream .phone-feat-frame--grandstream {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}

.phone-feat-grid--grandstream .phone-feat-frame--grandstream img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Nortel / Norstar square collage — single frame, no harsh crop */
.phone-feat-frame--nortel-collage {
  height: min(360px, 52vw);
  max-height: 380px;
  background-color: var(--white);
}

.phone-feat-frame--nortel-collage img {
  object-fit: contain;
}

.phone-feat-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.phone-feat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 0.5rem;
}

.phone-feat-heading {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.phone-feat-text p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: none;
}

.phone-feat-text p + p {
  margin-top: 1rem;
}

.phone-feat-images {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.phone-feat-images--single {
  justify-content: center;
}

.phone-feat-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--light);
}

.phone-feat-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-feat-frame--short {
  height: 200px;
}

.phone-feat-frame--mid {
  height: 220px;
}

.phone-feat-frame--tall {
  height: min(360px, 52vw);
  max-height: 380px;
}

.phone-feat-voip-btn {
  margin-top: 1.5rem;
}

/* === Service Feature Grid (icon + title + text) === */
.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.service-feature__icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.service-feature__text h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.service-feature__text p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.5;
  max-width: none;
}

/* === Service List (simple bullet list with better styling) === */
.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.375rem 0;
}

.service-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* === Responsive: Tablet === */
@media (max-width: 1024px) {
  .service-features {
    grid-template-columns: 1fr;
  }

  .phone-feat-grid {
    gap: 2rem;
  }
}

/* === Responsive: Mobile === */
@media (max-width: 768px) {
  .service-intro {
    padding: 2.5rem 0 2rem;
  }

  .service-content {
    padding: 2.5rem 0;
  }

  .service-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .phone-feat-section {
    padding: 2.75rem 0;
  }

  .phone-feat-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .phone-feat-grid--grandstream .phone-feat-text {
    width: 100%;
    max-width: none;
  }

  .phone-feat-grid--grandstream .phone-feat-images--grandstream {
    position: static;
    width: 100%;
    min-height: 220px;
    margin-top: 0.5rem;
  }

  .phone-feat-grid--grandstream .phone-feat-frame--grandstream {
    height: auto;
    min-height: 200px;
    max-height: 320px;
  }

  .phone-feat-grid--grandstream .phone-feat-frame--grandstream img {
    max-height: 300px;
  }

  .phone-feat-images {
    order: -1;
  }

  .phone-feat-frame--tall {
    height: 240px;
    max-height: none;
  }

  .phone-feat-frame--nortel-collage {
    height: 240px;
    max-height: 280px;
  }
}
