/* ==========================================================================
   Triple-S Computers - site-wide refinements
   Loaded after pex-theme.css on every page. Fixes theme quirks without
   changing the established look (colors, fonts, layout).
   ========================================================================== */

/* Raleway ships old-style figures by default ("395+" and "$148/hr" sit below
   the baseline). Lining figures read cleaner for prices, dates and stats. */
body.body { font-variant-numeric: lining-nums; -webkit-font-feature-settings: "lnum"; font-feature-settings: "lnum"; }

/* Screen-reader-only text */
.visually-hidden { position: absolute !important; clip: rect(1px,1px,1px,1px); padding: 0; border: 0; height: 1px; width: 1px; overflow: hidden; white-space: nowrap; }

/* pentix.css forces every .text-lg title to text-align:left, which left the
   big titles hanging left above their centered subtitles
   ("What People Say", "The Typical Customer Experience", etc.). */
body.body .text-center .text-lg,
body.body .text-center.text-lg,
body.body .services-marquee-section .section-head .text-lg { text-align: center; }

/* Homepage eyebrow line (the page's visible H1) */
.tss-eyebrow { font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8fc3e6; line-height: 1.5; margin: 0 0 12px; }

/* --- Service tiles (homepage + Services page) ---------------------------
   Titles were clipped with an ellipsis and descriptions were cut off at a
   fixed 66px height. Let them wrap and keep each row's cards equal height. */
.item-title { white-space: normal; overflow: visible; text-overflow: clip; }
.item-text { height: auto; min-height: 66px; overflow: visible; text-align: left; }
/* Equal-height card rows. Scoped to the breakpoints where the theme's float
   grid puts cards side by side, so phones keep the normal stacked layout. */
@media (min-width: 768px) {
  .tss-equal-sm { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
  .tss-equal-sm:before, .tss-equal-sm:after { display: none; }
  .tss-equal-sm > [class*="col-"] { float: none; display: -webkit-box; display: -ms-flexbox; display: flex; }
  .tss-equal-sm > [class*="col-"] > * { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
}
@media (min-width: 992px) {
  .tss-equal-md { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
  .tss-equal-md:before, .tss-equal-md:after { display: none; }
  .tss-equal-md > [class*="col-"] { float: none; display: -webkit-box; display: -ms-flexbox; display: flex; }
  .tss-equal-md > [class*="col-"] > * { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
}
/* Consecutive feature rows: the old <br> spacers were the only thing
   separating them; give them a real 20px gap instead. */
.tss-equal-md + .tss-equal-md, .tss-equal-sm + .tss-equal-sm { margin-top: 0; }
/* Cards: keep "read more" buttons pinned to the bottom of each card */
.item.solid, .item.tss-tile { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -ms-flex-direction: column; flex-direction: column; }
.item.solid .item-content, .item.tss-tile .item-content { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -ms-flex-direction: column; flex-direction: column; }
.item.solid .item-content:before, .item.solid .item-content:after, .item.tss-tile .item-content:before, .item.tss-tile .item-content:after { display: none; }
.item.solid .item-text, .item.tss-tile .item-text { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; }
.item.solid .simple-link, .item.tss-tile .simple-link { -ms-flex-item-align: end; align-self: flex-end; float: none; }
.price-block { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -ms-flex-direction: column; flex-direction: column; }
.price-block .price-list { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; }
.price-block > .btn { -ms-flex-item-align: center; align-self: center; }
.feature.block-feature { height: auto; }
/* Testimonial carousel: equal-height cards */
.owl-carousel .owl-stage { display: -webkit-box; display: -ms-flexbox; display: flex; }
.owl-carousel .owl-item { float: none; display: -webkit-box; display: -ms-flexbox; display: flex; }
.owl-carousel .owl-item > .item { width: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; }
.owl-carousel .owl-item > .item > .simple-testimonial { width: 100%; }

/* Price cards: body copy was #999 on white (2.8:1 contrast). */
.price-block { color: #5f6570; }
.price-block.simple .price-subtext { color: #6f7680; }
.price-block .price-list { padding-left: 0; list-style: none; }

/* Testimonials: justified text in narrow cards produced wide rivers. */
.simple-testimonial .tt-content { text-align: center; -moz-text-align-last: auto; text-align-last: auto; }
.simple-testimonial .pexx-tt-user-title { color: #c9d3e0; }
.simple-testimonial .pexx-tt-user-subtitle { color: #9fb3c8; }

/* Justified paragraphs in narrow footer/sidebar columns */
.footer-text.sm-text-justify, .only-xs-text-justify-center { text-align: left; -moz-text-align-last: auto; text-align-last: auto; }

/* Callout box (shared) */
.tss-callout { background: linear-gradient(135deg, #0b3263 0%, #1a4a8a 100%); border-left: 4px solid #ffa200; padding: 1.5em 1.8em; margin: 2em 0; color: #fff; border-radius: 0 4px 4px 0; }
.tss-callout p { color: rgba(255,255,255,0.92); margin-bottom: 0.5em; }
.tss-callout p:last-child { margin-bottom: 0; }
.tss-callout strong { color: #ffa200; }
.tss-callout a { color: #ffa200; text-decoration: underline; }
.tss-callout a:hover { color: #fff; }

/* Geo/service sidebar: quick facts + cross-links */
.tss-facts { list-style: none; padding: 0; margin: 0 0 10px; }
.tss-facts li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); line-height: 1.5; }
.tss-facts li:last-child { border-bottom: 0; }
.tss-facts .tss-k { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8fc3e6; }

/* Directions block */
.tss-route { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 1.1em 1.4em; margin: 0 0 1.5em; }
.tss-route ol { margin: .4em 0 0 0; padding: 0 0 0 1.4em; list-style: decimal outside; }
.tss-route ol li { display: list-item; list-style: decimal outside; }
.tss-route li + li { margin-top: .35em; }
.tss-route .tss-route-meta { font-size: 13px; color: #9fb3c8; margin-top: .6em; }

/* Service-area hub cards */
.tss-area-grid { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -10px; }
.tss-area { -webkit-box-flex: 0; -ms-flex: 0 0 calc(100% - 20px); flex: 0 0 calc(100% - 20px); max-width: calc(100% - 20px); margin: 0 10px 20px; background: #0b3263; border-top: 3px solid #ffa200; padding: 22px 24px 18px; }
@media (min-width: 768px) { .tss-area { -ms-flex-preferred-size: calc(50% - 20px); flex-basis: calc(50% - 20px); max-width: calc(50% - 20px); } }
@media (min-width: 1200px) { .tss-area { -ms-flex-preferred-size: calc(25% - 20px); flex-basis: calc(25% - 20px); max-width: calc(25% - 20px); } }
.tss-area h2 { font-size: 22px; margin: 0 0 4px; color: #ffa200; }
.tss-area .tss-area-meta { font-size: 13px; color: #9fb3c8; margin: 0 0 12px; }
.tss-area p { margin-bottom: 14px; }
.tss-area .tss-area-links a { display: inline-block; margin: 0 14px 6px 0; font-weight: 600; }

/* Mobile tap-to-call button in the header (phone number was hidden on phones) */
.tss-mobile-call { display: none; }
@media (max-width: 767px) {
  .tss-mobile-call { display: inline-block; float: right; margin: 2px 12px 0 0; padding: 0 14px; height: 36px; line-height: 36px; border-radius: 18px; background: #ffa200; color: #0b3263 !important; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 13px; text-decoration: none !important; }
  .tss-mobile-call i { margin-right: 6px; }
}

/* Services marquee: pause on hover/focus and respect reduced-motion */
.services-marquee-wrap { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
@media (prefers-reduced-motion: reduce) {
  .services-marquee-row { transform: none !important; flex-wrap: wrap; width: auto; }
  .services-marquee-row ul[aria-hidden="true"] { display: none; }
  .services-marquee-row ul { flex-wrap: wrap; }
  .services-marquee-row li { white-space: normal; }
}

/* Section headings promoted from h3 to h2 (proper outline under the page H1)
   keep the exact look of the theme's h3 */
h2.tss-h3 { font-size: 26px; line-height: 1.4; margin-bottom: 15px; }
/* FAQ questions inside content pages */
h3.tss-q { font-family: Montserrat, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.5; color: #ffa200; margin: 22px 0 6px; }
h3.tss-q + p { margin-bottom: 14px; }

/* Breathing room after a bulleted list when prose or a heading follows */
ul.list + p, ul.list + h2.tss-h3, ul.list + h3 { margin-top: 20px; }
