/* products page ===================================*/

/* Page background contrasts with the color-2 section so the bottom triangle is visible */
#products {
  background-color: var(--bg-color-1);
}

/* Bottom triangle — bridges color-2 section into page background (color-1) */
#products .pagecontents:after {
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border: solid transparent;
  border-color: var(--bg-color-1);
  border-top-color: var(--bg-color-2);
  border-width: 30px;
  left: 50%;
  margin-left: -30px;
  top: auto;
  z-index: 1;
}
#products .pageheader {
  background-image: url(/img/products.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  padding: 190px 0 35px 0;
}

#products .pageheader .title {
  color: #fff;
  border: none;
}

.ul-products {
  list-style: none;
  padding: 0;
}

.ul-products > li {
  background-color: var(--bg-list-item);
  margin-bottom: 15px;
  box-shadow: 0px 3px 3px -3px var(--shadow-card);
  border-radius: 3px;
}

.ul-products > li .image {
  position: relative;
  overflow: hidden;
}

.ul-products > li .meta {
  overflow: hidden;
  padding: 10px;
  cursor: pointer;
}

/* -----------------------------------------------
   Expand / collapse icon strip (mirrors insights .pubassets)
   ----------------------------------------------- */

.ul-products > li .pubassets {
  background: var(--bg-list-item);
  text-align: right;
}

.ul-products > li .pubassets a {
  color: #9b9b9b;
  padding: 5px 15px;
  display: inline-block;
  font-size: 18px;
}

.ul-products > li .pubassets a:hover,
.ul-products > li .pubassets a:focus,
.ul-products > li .pubassets a.pubcollapse {
  background: var(--accent);
  color: #fff;
}

.ul-products > li .details {
  display: none;
  padding: 20px;
  background: var(--bg-details);
  box-shadow: inset 0px 3px 5px -3px var(--shadow-card);
}

.service-loading {
  padding: 10px 0;
  color: #aaa;
  font-style: italic;
}

/* -----------------------------------------------
   Microsoft 365 plan blocks
   ----------------------------------------------- */

.ms365-plans {
  margin-top: 20px;
}

.ms365-plans .row {
  margin-left: -8px;
  margin-right: -8px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.ms365-col {
  padding: 0 8px 16px;
  display: flex;
}

.ms365-block {
  border: 1px solid var(--border-card);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ms365-block-header {
  padding: 13px 16px;
  color: #fff;
}

.ms365-block-header h4 {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-family: "Lato", sans-serif;
}

.ms365-block-body {
  padding: 14px 16px;
  background: var(--bg-details);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ms365-block-body ul {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
  flex: 1;
}

.ms365-block-body ul li {
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--text-body);
  background: none;
  box-shadow: none;
  border-radius: 0;
  border-left: none;
  padding: 0;
  position: relative;
}

.ms365-block-body ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  position: absolute;
  left: -16px;
}

.ms365-price {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-price);
}

.ms365-price-split {
  display: flex;
  gap: 0;
}

.ms365-price-option {
  flex: 1;
  padding-right: 12px;
}

.ms365-price-option + .ms365-price-option {
  padding-right: 0;
  padding-left: 12px;
  border-left: 1px solid var(--border-price);
}

.ms365-price-label {
  display: block;
  font-size: 11px;
  color: #777;
  margin-bottom: 3px;
}

.ms365-price-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-body);
}

.ms365-price-period {
  font-size: 12px;
  color: #777;
  margin-left: 2px;
}

.ms365-price-note {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}

/* Per-plan header colours */
.ms365-premium .ms365-block-header {
  background: #0078d4;
}
.ms365-standard .ms365-block-header {
  background: #2199e8;
}
.ms365-exchange .ms365-block-header {
  background: #008272;
}
.ms365-copilot .ms365-block-header {
  background: #7460ee;
}

/* -----------------------------------------------
   VoIP product — two-column layout
   ----------------------------------------------- */

.voip-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid var(--border-section);
}

.voip-item:first-of-type {
  border-top: none;
  padding-top: 10px;
}

.voip-text {
  flex: 1 1 0;
  min-width: 0;
}

.voip-text h3 {
  margin-top: 0;
}

.voip-figure {
  width: 400px;
  flex-shrink: 0;
  text-align: center;
}

.voip-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.voip-figure figcaption {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.4rem;
  font-style: italic;
}

/* 2 columns: iPad Pro landscape and above (1025px+) */
@media (min-width: 1025px) {
  .ms365-col {
    width: 50%;
  }
}

/* Price split: stack vertically on iPad mini and below (≤ 768px) */
@media (max-width: 768px) {
  .ms365-price-split {
    flex-direction: column;
    gap: 10px;
  }

  .ms365-price-option + .ms365-price-option {
    padding-left: 0;
    border-left: none;
    padding-top: 10px;
    border-top: 1px solid var(--border-price);
  }
}

/* VoIP: stack to single column on mobile (≤ 600px) */
@media (max-width: 600px) {
  .voip-item {
    flex-direction: column;
  }

  .voip-figure {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}
