/* RepairPC homepage redesign - robicam.bg-inspired layout, RepairPC brand colors */

/* ===== Full-bleed hero (rendered via displayNavFullWidth, outside the
   sidebar-constrained row, so it spans the entire page width naturally -
   no viewport-width CSS hacks needed). ===== */
.rpc-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 30%;
  color: #fff;
  padding: 60px 24px;
  margin-bottom: 5px;
}
.rpc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.72) 45%, rgba(10, 10, 10, 0.35) 100%);
}
.rpc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  margin-left: max(5vw, calc((100vw - 1200px) / 2 + 20px));
}
.rpc-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
  color: #fff;
  text-transform: uppercase;
}
.rpc-hero-sub {
  font-size: 1.1rem;
  color: #e4e4e4;
  margin: 0 0 24px;
  max-width: 520px;
}
.rpc-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.rpc-hero-bullets li {
  margin: 8px 0;
  font-size: 1.05rem;
  color: #fff;
}
.rpc-arrow {
  color: var(--rpc-orange, #f69323);
  font-weight: 700;
  margin-right: 8px;
}
.rpc-wizard-open {
  background-color: var(--rpc-orange, #f69323);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.rpc-wizard-open:hover {
  background-color: var(--rpc-orange-dark, #dd7a09);
}

.rpc-trustbar {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.88rem;
  color: #f0f0f0;
}
.rpc-trustbar span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rpc-trustbar i.material-icons {
  font-size: 17px;
  color: var(--rpc-orange, #f69323);
}

/* ===== Big photo-block grid (also full-bleed) ===== */
.rpc-situational {
  padding: 0;
}
.rpc-situational-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 4px;
}
.rpc-sit-home {
  grid-column: 1;
  grid-row: 1 / 3;
}
.rpc-sit-office {
  grid-column: 2;
  grid-row: 1;
}
.rpc-sit-intercom {
  grid-column: 3;
  grid-row: 1;
}
.rpc-sit-network {
  grid-column: 2 / 4;
  grid-row: 2;
}
.rpc-situational-tile {
  position: relative;
  display: block;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-decoration: none;
}
.rpc-situational-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.15) 55%);
  transition: background 0.2s;
}
.rpc-situational-tile:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.25) 55%);
}
.rpc-situational-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
}
.rpc-situational-label {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.rpc-sit-office .rpc-situational-label,
.rpc-sit-intercom .rpc-situational-label {
  font-size: 1.05rem;
}
.rpc-situational-sub {
  display: block;
  color: #e8e8e8;
  font-size: 0.82rem;
  margin-top: 4px;
}
.rpc-situational-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 10px;
  letter-spacing: 0.5px;
}
.rpc-situational-arrow {
  transition: transform 0.15s;
}
.rpc-situational-tile:hover .rpc-situational-arrow {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .rpc-situational-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 180px);
  }
  .rpc-sit-home {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .rpc-sit-office {
    grid-column: 1;
    grid-row: 2;
  }
  .rpc-sit-intercom {
    grid-column: 2;
    grid-row: 2;
  }
  .rpc-sit-network {
    grid-column: 1 / 3;
    grid-row: 3;
  }
  .rpc-hero {
    min-height: 460px;
  }
  .rpc-hero-title {
    font-size: 2rem;
  }
}
@media (max-width: 575px) {
  .rpc-situational-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 200px);
  }
  .rpc-sit-home,
  .rpc-sit-office,
  .rpc-sit-intercom,
  .rpc-sit-network {
    grid-column: 1;
  }
  .rpc-sit-home { grid-row: 1; }
  .rpc-sit-office { grid-row: 2; }
  .rpc-sit-intercom { grid-row: 3; }
  .rpc-sit-network { grid-row: 4; }
}

.rpc-product-carousel {
  align-items: stretch;
}
.rpc-product-cell {
  flex: 0 0 230px;
}
.rpc-product-cell .product-miniature {
  height: 100%;
}

.rpc-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}
.rpc-section-head h2 {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--rpc-dark, #1a1a1a);
}

.rpc-carousel {
  position: relative;
  display: flex;
  align-items: center;
}
.rpc-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px;
  flex: 1;
}
.rpc-carousel-track::-webkit-scrollbar {
  display: none;
}
.rpc-carousel-prev,
.rpc-carousel-next {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--rpc-dark, #1a1a1a);
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}
.rpc-carousel-prev:hover,
.rpc-carousel-next:hover {
  border-color: var(--rpc-orange, #f69323);
  color: var(--rpc-orange, #f69323);
}

.rpc-tile {
  position: relative;
  flex: 0 0 240px;
  height: 260px;
  display: block;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: box-shadow 0.15s;
}
.rpc-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 55%);
  transition: background 0.2s;
}
.rpc-tile:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.rpc-tile:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 55%);
}
.rpc-tile-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
}
.rpc-tile-label {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 6px;
}
.rpc-tile-cta {
  display: block;
  color: var(--rpc-orange, #f69323);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rpc-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.rpc-why-item {
  text-align: center;
  padding: 12px;
}
.rpc-why-item i.material-icons {
  font-size: 36px;
  color: var(--rpc-orange, #f69323);
  margin-bottom: 10px;
}
.rpc-why-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 8px 0;
  color: var(--rpc-dark, #1a1a1a);
}
.rpc-why-item p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

.rpc-brand-tile {
  flex: 0 0 150px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px;
}
.rpc-brand-tile:hover {
  border-color: var(--rpc-orange, #f69323);
}
.rpc-brand-tile-dark {
  background-color: var(--rpc-dark, #1a1a1a);
}
.rpc-brand-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.rpc-brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rpc-dark, #1a1a1a);
  letter-spacing: 0.5px;
}

/* Carousel-ize existing ps_newproducts / ps_bestsellers grids on the homepage */
#index .featured-products .products,
#index .products-section .products {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  gap: 16px;
}
#index .featured-products .products::-webkit-scrollbar,
#index .products-section .products::-webkit-scrollbar {
  display: none;
}
#index .featured-products .products .product-miniature,
#index .products-section .products .product-miniature {
  flex: 0 0 230px;
}

/* On phones the horizontal carousel just clips the last card awkwardly -
   revert to the theme's normal stacked/grid layout below the tablet breakpoint. */
@media (max-width: 575px) {
  #index .featured-products .products,
  #index .products-section .products {
    display: block !important;
    overflow-x: visible;
  }
  #index .featured-products .products .product-miniature,
  #index .products-section .products .product-miniature {
    flex: none;
    width: 100%;
  }
}

/* Wizard modal */
.rpc-wizard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.rpc-wizard-overlay.rpc-open {
  display: flex;
}
.rpc-wizard-modal {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  max-width: 480px;
  width: 92%;
  position: relative;
}
.rpc-wizard-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
}
.rpc-wizard-modal h3 {
  margin: 0 0 18px;
  font-size: 1.15rem;
  color: var(--rpc-dark, #1a1a1a);
}
.rpc-wizard-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rpc-wizard-option,
.rpc-wizard-budget {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--rpc-dark, #1a1a1a);
}
.rpc-wizard-option:hover,
.rpc-wizard-budget:hover {
  border-color: var(--rpc-orange, #f69323);
  background: #fff6ec;
}
.rpc-wizard-back {
  margin-top: 16px;
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .rpc-hero-title {
    font-size: 1.6rem;
  }
  .rpc-hero-inner {
    margin-left: auto;
    margin-right: auto;
    padding: 0 8px;
  }
  .rpc-trustbar {
    gap: 8px 16px;
    font-size: 0.78rem;
  }
}
