/* Homepage sections (sec-home.php). Uses the tokens from site.css. */
.sec-tight { padding: 34px 0 10px; }

/* Placeholder when an image is missing */
.ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--soft); color: #b8c6d9; font-size: 40px; }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-strip ul { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-strip li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.trust-strip li i { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #e8f0fb; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.trust-strip strong { color: var(--ink); }

/* TSC range highlight cards */
.range-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.range-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.range-card:hover { color: var(--ink); text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.range-card img, .range-card .ph { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; padding: 14px; background: #fff; }
.range-body { display: block; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.range-body strong { display: block; font-size: 16px; line-height: 1.3; }
.range-body small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.svc-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 20px 18px; color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--brand); transition: box-shadow .2s, transform .2s; }
.svc-card:hover { color: var(--ink); text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.svc-card.accent { border-top-color: var(--accent); }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; background: #e8f0fb; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 12px; }
.svc-card.accent .svc-icon { background: #fdeaec; color: var(--accent); }
.svc-card strong { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.svc-card small { color: var(--muted); font-size: 14px; line-height: 1.45; flex: 1; }
.svc-go { margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--accent); }
.svc-go i { font-size: 12px; margin-left: 4px; }

/* Featured product rows - native horizontal scroll, no carousel library */
.row-tools { display: flex; align-items: center; gap: 8px; }
.row-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.row-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.prod-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.prod-tile { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: box-shadow .2s; }
.prod-tile:hover { box-shadow: var(--shadow-hover); }
.prod-tile-img { display: block; aspect-ratio: 1 / 1; margin-bottom: 10px; }
.prod-tile-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-tile-name { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.prod-tile-name:hover { color: var(--brand); text-decoration: none; }
.prod-tile .btn { margin-top: auto; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.cat-card:hover { color: var(--brand); text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cat-img { display: block; aspect-ratio: 1 / 1; padding: 10px; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-name { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; font-size: 14px; font-weight: 700; line-height: 1.3; border-top: 1px solid var(--line); }

/* Skill centre band */
.skill-band { background: linear-gradient(120deg, #0b1f3a 0%, var(--brand) 100%); color: #fff; padding: 48px 0; }
.skill-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.skill-band h2 { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.skill-band p { color: #d6e2f3; font-size: 16px; margin-bottom: 14px; }
.eyebrow.light { color: #ffb3b9; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.skill-band-cta { text-align: center; flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; }
.skill-band-cta .mt-2 { margin-top: 10px !important; }
.skill-band-cta small { display: block; color: #c4d3e8; margin-top: 8px; font-size: 13px; }

/* Contact CTA */
.cta-band { background: var(--accent); color: #fff; padding: 40px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #ffe3e5; font-size: 16px; }
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cta-buttons .btn-outline-light { border-width: 2px; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .range-grid, .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-row { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
  .trust-strip ul { grid-template-columns: repeat(2, 1fr); }
  .prod-row { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .skill-band-inner, .cta-inner { flex-direction: column; align-items: flex-start; }
  .skill-band-cta { text-align: left; }
  .cta-buttons { justify-content: flex-start; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .sec { padding: 36px 0; }
  .sec-tight { padding: 26px 0 4px; }
  .sec-head h2 { font-size: 22px; }
  .sec-head p { font-size: 14px; }
  .trust-strip ul { gap: 10px; padding: 12px 0; }
  .trust-strip li { font-size: 12.5px; gap: 8px; }
  .trust-strip li i { width: 32px; height: 32px; font-size: 14px; }
  .range-grid, .svc-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .range-card:last-child { grid-column: span 2; }
  .range-card:last-child img, .range-card:last-child .ph { aspect-ratio: 2 / 1; }
  .range-body { padding: 10px; }
  .range-body strong { font-size: 14px; }
  .range-body small { font-size: 12px; }
  .svc-card { padding: 14px 12px; }
  .svc-card:last-child { grid-column: span 2; }
  .svc-icon { width: 38px; height: 38px; font-size: 17px; margin-bottom: 8px; }
  .svc-card strong { font-size: 15px; }
  .svc-card small { font-size: 12.5px; }
  .svc-go { font-size: 13px; margin-top: 10px; }
  .row-arrow { display: none; }
  .prod-row { grid-auto-columns: 44%; gap: 10px; }
  .prod-tile { padding: 10px; }
  .prod-tile-name { font-size: 13px; }
  .cat-name { font-size: 13px; min-height: 46px; }
  .skill-band { padding: 36px 0; }
  .skill-band h2 { font-size: 24px; }
  .skill-band p, .cta-band p { font-size: 15px; }
  .cta-band h2 { font-size: 22px; }
  .cta-buttons { width: 100%; }
  .cta-buttons .btn { flex: 1 1 100%; }
}

/* MYNDS ribbon band (partials/mynds-home-band.php) */
.mynds-band { background: radial-gradient(circle at 85% 20%, #1a3c6e 0%, #0b1f3a 55%, #071427 100%); color: #fff; padding: 52px 0; }
.mynds-band-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; align-items: center; }
.mynds-badge { display: inline-flex; align-items: center; gap: 6px; background: #f5b301; color: #1d2733; font-weight: 800; font-size: 13px; border-radius: 20px; padding: 5px 14px; margin-bottom: 14px; }
.mynds-band h2 { font-size: 34px; font-weight: 800; line-height: 1.2; margin: 0 0 12px; color: #fff; letter-spacing: -.3px; }
.mynds-band p { color: #c9d8ee; font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
.mynds-grades { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.mynds-grades span { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; padding: 3px 9px; font-size: 12.5px; font-weight: 700; }
.mynds-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mynds-actions .btn-outline-light { border-width: 2px; }
.mynds-claim { display: block; margin-top: 10px; color: #9fb3d1; font-size: 12px; }
.mynds-band-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mynds-band-facts div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 18px; }
.mynds-band-facts strong { display: block; font-size: 28px; font-weight: 800; color: #f5b301; line-height: 1.1; }
.mynds-band-facts span { color: #c9d8ee; font-size: 14px; }
@media (max-width: 991px) { .mynds-band-inner { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .mynds-band { padding: 38px 0; }
  .mynds-band h2 { font-size: 25px; }
  .mynds-actions .btn { flex: 1 1 100%; }
  .mynds-band-facts strong { font-size: 22px; }
}

/* Homepage main heading */
.home-h1 { padding: 18px 0 6px; text-align: center; }
.home-h1 h1 { font-size: 24px; font-weight: 800; color: #0b2d5e; margin-bottom: 4px; }
.home-h1 p { margin: 0; font-size: 14.5px; color: #4a5768; }
@media (max-width: 575px) { .home-h1 h1 { font-size: 19px; } }
