/* ============================================================
   Home Enviro — Services Hub — Additional styles
   Extends css/styles.css (the real site's stylesheet).
   ============================================================ */

/* Breadcrumb-style intro badge above hub title */
.hub-hero {
  background: linear-gradient(135deg, rgba(15,35,71,0.82) 0%, rgba(30,93,196,0.68) 100%), url('images/hero-services.webp') center/cover no-repeat;
  background-color: #0f2347;
}

/* Hub navigation grid — one card per service pillar, links to real pages */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-6);
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.hub-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.hub-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.hub-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-4);
}

.hub-card__link {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-cta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hub-card__link svg { transition: transform 0.2s ease; }
.hub-card:hover .hub-card__link svg { transform: translateX(3px); }

/* Category label above each hub grid section */
.hub-category-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}

/* Quick resource pill list (learning center / company links) */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.pill-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pill-list a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Service area chip grid */
.city-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-2);
}

.city-chip {
  display: block;
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.city-chip:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Video wrapper (16:9) reused from homepage pattern */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(15,35,71,0.18);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
  .video-embed { padding-bottom: 56.25%; height: 0; }
}

/* Anchor sub-nav for jumping between hub sections */
.hub-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}
.hub-subnav__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.5rem 0;
}
.hub-subnav__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0.1rem 0;
  flex: 1;
}
@media (max-width: 1250px) {
  .hub-subnav__row { flex-wrap: wrap; }
  .hub-subnav__inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
    order: 2;
    width: 100%;
  }
  .hub-search { order: 1; width: 100%; }
}

/* Interactive resource search */
.hub-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 240px;
}
.hub-search__icon {
  position: absolute;
  left: 0.7rem;
  color: var(--color-text-muted);
  pointer-events: none;
}
.hub-search__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.45rem 2rem 0.45rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hub-search__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.hub-search__clear {
  position: absolute;
  right: 0.55rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.1rem 0.3rem;
}
.hub-search__clear:hover { color: var(--color-text); }
@media (max-width: 1250px) {
  .hub-search { width: 100%; }
}

.hub-search-results {
  max-height: 70vh;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}
.hub-search-results__count {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.hub-search-results__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}
.hub-search-result {
  display: block;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.hub-search-result:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.hub-search-result__cat {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-cta);
  display: block;
  margin-bottom: 0.25rem;
}
.hub-search-result__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.35;
}
.hub-search-results__empty {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
}

/* Related Resources cross-reference block */
.related-block {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.related-block__title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.related-block__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
}
.related-block__group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-cta);
  display: block;
  margin-bottom: 0.5rem;
}
.related-block__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.related-block__links a {
  font-size: 0.85rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.4;
}
.related-block__links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.related-block__cta {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.related-block__cta a {
  color: var(--color-cta);
  font-weight: 700;
  text-decoration: none;
}
.related-block__cta a:hover { text-decoration: underline; }
.hub-subnav__inner a {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.hub-subnav__inner a:hover,
.hub-subnav__inner a.is-active {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
}

/* Remove the connector line across the 3 process-step boxes */
#process .process-steps::before {
  display: none !important;
  content: none !important;
}

/* Why Trust Us: text left, illustration right, side by side, image sized large */
.why-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  gap: var(--space-12);
  align-items: center;
}
.why-trust-copy { max-width: 560px; }
.why-trust-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.why-trust-image__frame {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-trust-image__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.why-trust-image__caption {
  margin-top: var(--space-5);
  width: 100%;
  max-width: 460px;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  text-align: center;
}
.why-trust-image__caption strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}
.why-trust-image__caption span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
@media (max-width: 900px) {
  .why-trust-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .why-trust-copy { max-width: 100%; text-align: left; }
  .why-trust-image { order: -1; }
  .why-trust-image__frame { max-width: 300px; }
  .why-trust-image__caption { max-width: 300px; }
}

/* Footer: widen grid to fit the added Business Hours column */
@media (min-width: 901px) {
  .footer-grid { grid-template-columns: 1.5fr 0.9fr 0.9fr 1fr 1.3fr; gap: var(--space-8); }
}
.footer-hours li { white-space: nowrap; }
@media (max-width: 1250px) and (min-width: 901px) {
  .footer-hours li { white-space: normal; }
}

/* Video library cards */
.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
  margin-bottom: var(--space-3);
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-card:hover .video-card__thumb img { transform: scale(1.05); }
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(220,38,38,0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.video-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}
.video-card__thumb--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border: 2px dashed var(--color-primary);
}
.video-card__thumb--more span {
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: 300;
}
.video-card--more .video-card__title { text-align: center; color: var(--color-primary); }

/* Reviews grid: 2 rows x 3 boxes */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.review-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.review-box img { height: 40px; width: auto; object-fit: contain; }
.review-box__stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 1px; }
.review-box__label { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 800px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* Hero layout override: push copy left, push form far right, let background photo breathe in the middle */
.hub-hero .hero__inner {
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--space-10);
  align-items: center;
}
.hub-hero .hero__content {
  max-width: 480px;
  justify-self: start;
}
.hub-hero .hero__form-card {
  justify-self: end;
  margin-left: auto;
}
@media (max-width: 1150px) {
  .hub-hero .hero__inner { grid-template-columns: 1fr; }
  .hub-hero .hero__content { max-width: 100%; justify-self: stretch; }
  .hub-hero .hero__form-card { justify-self: stretch; margin-left: 0; }
}

/* Hero contact/dispatch form card, positioned right of hero copy */
.hero__form-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  color: var(--color-text);
  align-self: center;
}
.hero__form-card h3 {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 0.15rem;
}
.hero__form-card p.hero__form-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-4);
}
.hero__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.hero__form-card .form-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}
.hero__form-card .form-input,
.hero__form-card .form-select,
.hero__form-card .form-textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  margin-bottom: 0.65rem;
}
.hero__form-card .form-textarea { resize: vertical; min-height: 50px; }
.hero__form-card .btn {
  width: 100%;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
}
@media (max-width: 800px) {
  .hero__form-row { grid-template-columns: 1fr; }
  .hero__form-card { max-width: 100%; }
}
