/* =========================================================
   AFRIGADGETS HOMEPAGE — BLACK / WHITE / GOLD
   No light/dark theme switch. No image overlays. No translucent UI.
   ========================================================= */

body {
  background: #000;
  color: #fff;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 78px;
  background: #000;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  align-items: center;
  gap: 46px;
  min-width: 0;
}

.home-hero-content { min-width: 0; }

.home-meter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.home-meter-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8bf3f;
}

.home-meter-readout {
  display: flex;
  flex-direction: column;
  padding: 9px 15px;
  background: #111;
  border: 1px solid #e8bf3f;
  border-radius: 6px;
}

.home-meter-digits {
  color: #e8bf3f;
  font-size: 22px;
  font-weight: 800;
}

.home-meter-caption {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
}

.home-hero-copy {
  max-width: 500px;
  margin: 0 0 30px;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border-radius: 7px;
  border: 1px solid #e8bf3f;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-btn-fill {
  background: #e8bf3f;
  color: #000;
}

.home-btn-quiet {
  background: #111;
  color: #fff;
}

.home-btn-quiet:hover {
  background: #e8bf3f;
  color: #000;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e8bf3f;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

/* HERO IMAGES: contained inside the hero, aligned to the right, no overlay. */
.home-hero-visual {
  width: 100%;
  max-width: 610px;
  min-width: 0;
  height: 420px;
  justify-self: end;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  overflow: hidden;
}

.home-hero-image-col {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.home-hero-image {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: #111;
}

.home-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

/* Prevent the large main image from being stretched/cropped beyond its frame. */
.home-hero-image-main img {
  object-fit: cover;
}

.home-section {
  padding: 76px 0;
  background: #000;
}

.home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.home-heading-centered {
  justify-content: center;
  text-align: center;
}

.home-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #e8bf3f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.home-label-light { color: #000; }

.home-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.home-category-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.home-category-grid::-webkit-scrollbar {
  height: 6px;
}

.home-category-card {
  flex: 0 0 230px;
  display: block;
  min-height: 142px;
  padding: 20px;
  background: #111;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
}

.home-category-card:hover { border-color: #e8bf3f; }

@media (max-width: 700px) {
  .home-category-card {
    flex-basis: 205px;
    min-height: 132px;
    padding: 18px;
  }
}

.home-category-screen {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: #000;
  border: 1px solid #e8bf3f;
  border-radius: 9px;
  color: #e8bf3f;
}

.home-category-card h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 16px;
}

.home-category-card span:not(.home-category-screen) {
  color: #fff;
  font-size: 12px;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-product-grid .product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
}

.home-product-grid .product-image {
  display: block;
  height: 290px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #2b2b2b;
}

.home-product-grid .product-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
}

.home-product-grid .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.home-product-grid .product-category {
  color: #e8bf3f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.home-product-grid .product-info h3 {
  min-height: 40px;
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.home-product-grid .product-info h3 a { color: #fff; }
.home-product-grid .product-price {
  display: block;
  margin-top: 13px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.home-product-grid .view-details-button,
.home-product-grid .add-to-cart-button,
.home-product-grid .installment-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
}

.home-product-grid .view-details-button {
  border: 1px solid #e8bf3f;
  background: #000;
  color: #fff !important;
}

.home-product-grid .add-to-cart-button {
  border: 1px solid #e8bf3f;
  background: #e8bf3f;
  color: #000;
}

.home-product-grid .installment-button {
  border: 1px solid #e8bf3f;
  background: #000;
  color: #e8bf3f;
  cursor: pointer;
}

.home-promo {
  background: #e8bf3f;
  padding: 62px 0;
}

.home-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.home-promo h2 {
  margin: 0 0 12px;
  color: #000;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
}

.home-promo p {
  max-width: 480px;
  margin: 0 0 24px;
  color: #000;
  font-size: 15px;
  line-height: 1.6;
}

.home-promo-readout {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 28px;
  background: #000;
  border: 1px solid #000;
  border-radius: 8px;
}

.home-promo-readout-digits,
.home-promo-readout-caption { color: #e8bf3f; }
.home-promo-readout-digits { font-size: 32px; font-weight: 800; }
.home-promo-readout-caption { margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

.home-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.home-benefit { text-align: center; }
.home-benefit i { margin-bottom: 14px; color: #e8bf3f; font-size: 20px; }
.home-benefit h3 { margin: 0 0 6px; color: #fff; font-size: 15px; }
.home-benefit p { margin: 0; color: #fff; font-size: 13px; line-height: 1.6; }

/* No fading/transparency: reveal elements are always fully visible. */
[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.home-footer { background: #000 !important; }

@media (max-width: 1000px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-visual { max-width: 100%; justify-self: stretch; }
  .home-product-grid { grid-template-columns: repeat(2, 1fr); }
  .home-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .home-hero { padding: 55px 0 45px; }
  .home-hero-visual { height: 270px; grid-template-columns: 1.1fr .9fr; }
  .home-product-grid,
  .home-benefits-grid { grid-template-columns: 1fr; }
  .home-heading { align-items: flex-start; flex-direction: column; }
  .home-promo-inner { align-items: flex-start; flex-direction: column; }
  .home-product-grid .product-image { height: 250px; }
}


/* Keep the square iPhone hero artwork fully visible instead of cropping its top/bottom. */
.home-hero-image-col .home-hero-image:last-child img {
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: #000;
}
