/* ============================================================
   PC Phone Services — Homepage (index.php) stylesheet
   Loaded only on the home page. All shared UI (navbar, footer,
   buttons base, etc.) lives in base.css / main.css.
   ============================================================ */

/* Hero — modern variant */
.hero-section--modern .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(35, 31, 32, 0.85) 0%,
    rgba(35, 31, 32, 0.7) 55%,
    rgba(35, 31, 32, 0.8) 100%
  );
}

.hero-section--modern::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--brand-gold) 20%,
    var(--brand-gold) 80%,
    transparent 100%);
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(204, 171, 86, 0.55);
  border-radius: 999px;
  color: var(--brand-gold);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.06);
}

.hero-content h1 .accent {
  color: var(--brand-gold);
  display: inline-block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn--hero-primary {
  background-color: var(--brand-gold) !important;
  color: var(--brand-black) !important;
  border: 2px solid var(--brand-gold);
  box-shadow: 0 10px 30px rgba(204, 171, 86, 0.35);
}

.btn--hero-primary:hover,
.btn--hero-primary:focus-visible {
  background-color: var(--white) !important;
  color: var(--brand-black) !important;
  border-color: var(--white);
}

.btn--hero-ghost {
  background-color: transparent !important;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--hero-ghost:hover,
.btn--hero-ghost:focus-visible {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--white) !important;
  border-color: var(--white);
  transform: translateY(-2px);
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust i {
  color: var(--brand-gold);
  font-size: var(--fs-base);
}

.hero-scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 3;
  animation: bounceY 2s ease-in-out infinite;
  text-decoration: none;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

@keyframes bounceY {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
}

@media (max-width: 767px) {
  .hero-trust {
    gap: 0.75rem;
    font-size: 0.8rem;
  }
  .hero-scroll { display: none; }
}

/* Section heading */
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  color: var(--brand-black);
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: var(--brand-gold);
  border-radius: 2px;
}

.section-heading--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-heading--row h2::after {
  margin-left: 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.section-lead {
  max-width: 640px;
  margin: 0.75rem auto 0;
  color: var(--text-color-secondary);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-black);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
}

/* Service cards — modern grid */
.services--modern {
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 1023px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border, #e5e0d4);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--brand-black);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-align: left;
}

.svc-card:hover,
.svc-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(204, 171, 86, 0.6);
}

.svc-card__icon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-black);
  color: var(--brand-gold);
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(204, 171, 86, 0.3);
}

.svc-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface, #f8f8f8);
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.svc-card:hover .svc-card__media img {
  transform: scale(1.03);
}

.svc-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.svc-card__body h3 {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--brand-black);
}

.svc-card__body p {
  margin: 0;
  color: var(--text-color-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}

.svc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-gold);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-top: 0.5rem;
  transition: gap var(--transition);
}

.svc-card:hover .svc-card__cta {
  gap: 0.7rem;
}

/* Ghost button variant used after service grid */
.btn--ghost-dark {
  background-color: transparent !important;
  color: var(--brand-black) !important;
  border: 2px solid var(--brand-black);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--ghost-dark:hover,
.btn--ghost-dark:focus-visible {
  background-color: var(--brand-black) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* Products section — modern */
.products--modern {
  text-align: left;
}

.products--modern .section-heading--row {
  margin-bottom: 1rem;
}

/* Hours box */
.hours-box h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--brand-black);
  margin-bottom: 1rem;
}

.hours-box h3 i {
  color: var(--brand-gold);
}

/* Feature split (about-us) */
.feature-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .feature-split { grid-template-columns: 1fr; }
}

.feature-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border, #e5e0d4);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--brand-black);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-tile:hover,
.feature-tile:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.feature-tile__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.feature-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-tile:hover .feature-tile__media img {
  transform: scale(1.05);
}

.feature-tile__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-tile__body h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-black);
}

.feature-tile__body p {
  margin: 0;
  color: var(--text-color-secondary);
  line-height: 1.55;
}

.feature-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-gold);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: gap var(--transition);
}

.feature-tile:hover .feature-tile__cta {
  gap: 0.7rem;
}

/* Why Choose Us — modern feature grid */
.why-choose-us--modern {
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 1023px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.feature-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  transition: transform var(--transition);
}

.feature-cell:hover {
  transform: translateY(-4px);
}

.feature-cell__icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(204, 171, 86, 0.15) 0%,
    rgba(204, 171, 86, 0.3) 100%);
  color: var(--brand-gold);
  font-size: var(--fs-xl);
  border-radius: 50%;
  border: 2px solid rgba(204, 171, 86, 0.35);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.feature-cell:hover .feature-cell__icon {
  background: var(--brand-gold);
  color: var(--brand-black);
  transform: scale(1.05);
}

.feature-cell h5 {
  margin: 0 0 0.5rem;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--brand-black);
}

.feature-cell p {
  margin: 0;
  color: var(--text-color-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 280px;
}

/* Location — modern spacing */
.location--modern .flex-box-2 {
  align-items: stretch;
}

.location--modern .map-container iframe {
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.location--modern .hours-box {
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border, #e5e0d4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Products — horizontal scroller (homepage only — shop.php is untouched) */
.products--scroller {
  text-align: left;
}

.product-scroller {
  position: relative;
  margin-top: 1.5rem;
}

.product-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.product-track::-webkit-scrollbar {
  display: none;
}

.product-track > .product-tile {
  flex: 0 0 calc((100% - 3 * 1.25rem) / 4);
  scroll-snap-align: start;
}

@media (max-width: 1199px) {
  .product-track > .product-tile { flex: 0 0 calc((100% - 2 * 1.25rem) / 3); }
}

@media (max-width: 900px) {
  .product-track > .product-tile { flex: 0 0 calc((100% - 1.25rem) / 2); }
}

@media (max-width: 600px) {
  .product-track { gap: 0.9rem; padding: 0.25rem 0.25rem 0.75rem; }
  .product-track > .product-tile { flex: 0 0 78%; }
}

.product-grid__empty {
  width: 100%;
  text-align: center;
  color: var(--text-color-secondary);
  padding: 2rem;
}

.product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border, #e5e0d4);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--brand-black);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-tile:hover,
.product-tile:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(204, 171, 86, 0.55);
}

.product-tile__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

.product-tile__media::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204, 171, 86, 0.25), transparent);
}

.product-tile__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform 0.5s ease;
}

.product-tile:hover .product-tile__media img {
  transform: scale(1.05);
}

.product-tile__tags {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  pointer-events: none;
}

.product-tile__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  line-height: 1;
}

.product-tile__badge--save {
  background: var(--brand-black);
  color: var(--brand-gold);
}

.product-tile__badge--new {
  background: var(--brand-gold);
  color: var(--brand-black);
}

.product-tile__stock {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #fff4e5;
  color: #a65200;
  border: 1px solid #ffd8a8;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(237, 108, 2, 0.15);
}

.product-tile__stock i {
  font-size: 0.7rem;
}

.product-tile__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.55rem 0.75rem;
  background: var(--brand-black);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transform: translateY(100%);
  transition: transform var(--transition);
  pointer-events: none;
}

.product-tile__cta i {
  color: var(--brand-gold);
}

.product-tile:hover .product-tile__cta,
.product-tile:focus-within .product-tile__cta {
  transform: translateY(0);
}

.product-tile:hover .product-tile__stock,
.product-tile:focus-within .product-tile__stock {
  opacity: 0;
  transition: opacity var(--transition);
}

.product-tile__body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-tile__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.product-tile__prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}

.product-tile__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-black);
  letter-spacing: -0.01em;
}

.product-tile--sale .product-tile__price {
  color: var(--brand-gold);
}

.product-tile__price-was {
  font-size: 0.8rem;
  color: #9a9588;
  text-decoration: line-through;
}

/* Arrow buttons for the scroller — push them outside the image area */
.product-scroller .scroll-arrow.left-arrow  { left: -8px; }
.product-scroller .scroll-arrow.right-arrow { right: -8px; }

.product-scroller .scroll-arrow {
  top: 38%;
  width: 42px;
  height: 42px;
  background: var(--white);
  color: var(--brand-black);
  border: 1px solid var(--border, #e5e0d4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.product-scroller .scroll-arrow:hover,
.product-scroller .scroll-arrow:focus-visible {
  background: var(--brand-gold);
  color: var(--brand-black);
  border-color: var(--brand-gold);
}

@media (max-width: 767px) {
  .product-tile__media img { padding: 0.75rem; }
  .product-tile__body { padding: 0.75rem 0.85rem 0.9rem; }
  .product-tile__title { font-size: var(--fs-sm); }
  .product-tile__price { font-size: 1.1rem; }
  .product-tile__cta { font-size: 0.72rem; padding: 0.45rem 0.6rem; }
}

@media (max-width: 767px) {
  .section-heading--row {
    align-items: flex-start;
  }
  .svc-card__body { padding: 1rem 1rem 1.25rem; }
  .feature-cell { padding: 1rem; }
  .feature-cell__icon { width: 64px; height: 64px; font-size: 1.5rem; }
}
