/*
Theme Name: AphaCards
Theme URI: https://aphacards.com
Author: AphaCards
Author URI: https://aphacards.com
Description: Custom lightweight theme for AphaCards
Version: 1.0
Template: hello-elementor
*/
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #0f172a;
}

.home-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #0b1c3a, #143a7b);
  color: #ffffff;
}



.hero-inner h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-search input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}

.hero-search {
  display: flex;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto 22px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
}

.hero-search input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 15px;
  border-radius: 8px;
}

.hero-search button {
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: #f59e0b;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}


.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-tags span {
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 14px;
}

/* =========================
   Header (fix white bar)
========================= */

.site-header {
  width: 100%;
  background: #0b1c3a; /* same tone as hero top */
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* header text */
.site-header a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}


/* Force full-width header background (no white sides) */
.site-header {
  background: #0b1c3a;
  box-shadow: 0 0 0 100vmax #0b1c3a;
  clip-path: inset(0 -100vmax);
}


/* =========================
   Global reset (safe)
========================= */
html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

/* =========================
   Header (full width, MGCS style)
========================= */
.site-header {
  width: 100%;
  background: #0b1c3a;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0b1c3a;
  z-index: -1;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.site-header nav {
  display: flex;
  gap: 22px;
}

/* =========================
   Hero section (reference-grade)
========================= */
.home-hero {
  position: relative;
  min-height: 88vh;
  padding: 110px 20px 70px;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(
      1200px 600px at 70% 10%,
      rgba(255,255,255,0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #0b1c3a 0%, #123d7a 100%);
  color: #ffffff;
}

/* force background to edges on all screens */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: -1;
}



/* =========================
   Hero typography
========================= */
.hero-inner h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 14px;
}

.hero-sub {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 26px;
}

/* =========================
   Search bar (single unified control)
========================= */
.hero-search {
  display: flex;
  align-items: center;
  max-width: 700px;
  margin: 0 auto 22px;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
}

.hero-search input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: none;
  outline: none;
  font-size: 15px;
  border-radius: 10px;
}

.hero-search button {
  height: 48px;
  padding: 0 26px;
  border: none;
  border-radius: 10px;
  background: #f59e0b;
  color: #0b1c3a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search button:hover {
  filter: brightness(0.95);
}

/* =========================
   Trending pills
========================= */
.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 7px 14px;
  font-size: 13px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  white-space: nowrap;
}



/* =========================
   Header
========================= */
.site-header {
  width: 100%;
  background: #1f3347;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

/* =========================
   Hero (split layout)
========================= */
.home-hero {
  background: linear-gradient(180deg, #1f3347 0%, #2b57a1 100%);
  padding: 90px 20px 80px;
  color: #ffffff;
}

.hero-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* =========================
   Left column
========================= */
.hero-left h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 26px;
}

.hero-search {
  display: flex;
  max-width: 520px;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 20px;
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  border-radius: 10px;
}

.hero-search button {
  border: none;
  background: #f5a000;
  color: #1f3347;
  font-weight: 600;
  padding: 0 26px;
  border-radius: 10px;
  cursor: pointer;
}

/* =========================
   Trending tags
========================= */
.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tags span {
  background: rgba(255,255,255,0.15);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
}

/* =========================
   Right column (visual)
========================= */
.hero-right {
  position: relative;
  min-height: 360px;
}

.card-stack {
  width: 100%;
  height: 100%;
  position: relative;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    display: none;
  }
}


/* =========================
   Header actions spacing
========================= */

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px; /* space between Login & Cart */
}

.header-actions a {
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

/* Emphasize Cart like a real marketplace */
.header-actions .cart-link {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.header-actions .cart-link:hover {
  background: rgba(255,255,255,0.2);
}


.hero-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-left {
  text-align: left;
}

/* override any inherited centering */
.hero-left * {
  text-align: left;
}



.hero-right {
  position: relative;
  height: 420px;
}

.card-stack {
  position: relative;
  width: 420px;
  height: 320px;

  /* MOVE STACK TO THE RIGHT */
  margin-left: 80px;

  /* optional fine tuning */
  transform: translateX(20px);
}


.card {
  position: absolute;
  width: 220px;
  height: 140px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* TEMP COLORS – visual proof only */
.card-1 {
  background: #2563eb;
  top: 0;
  left: 120px;
  transform: rotate(6deg);
}

.card-2 {
  background: #16a34a;
  top: 40px;
  left: 60px;
  transform: rotate(-4deg);
}

.card-3 {
  background: #f59e0b;
  top: 90px;
  left: 0;
  transform: rotate(-10deg);
}

.card-4 {
  background: #7c3aed;
  top: 140px;
  left: 140px;
  transform: rotate(12deg);
}


/* =========================
   TOP BRANDS SECTION
========================= */

.top-brands {
  background: #f8fafc;
  padding: 56px 20px;
}

.brands-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.brands-inner h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 28px;
  color: #0f172a;
}

.brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.brand-pill {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 500;
  font-size: 15px;
  color: #0f172a;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  user-select: none;
}
.brand-pill {
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}


/* ================================
   TOP SELLERS SECTION
================================ */

.top-sellers {
  padding: 80px 20px;
  background: #ffffff;
}

.top-sellers .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #0f172a;
}

/* GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Limit to 2 rows visually */
.product-grid > *:nth-child(n+9) {
  display: none;
}


/* CARD */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* IMAGE PLACEHOLDER */
.product-image {
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e5e7eb, #f1f5f9);
  margin-bottom: 16px;
}

/* TEXT */
.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0;
  color: #0f172a;
}

.rating {
  font-size: 14px;
  color: #f59e0b;
  margin-bottom: 6px;
}

.rating span {
  color: #64748b;
  font-size: 13px;
}

.price {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

/* ================================
   SHOP ALL CTA
================================ */

.shop-all-wrap {
  margin-top: 40px;
  text-align: center;
}

.shop-all-box {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 14px;
  background: #0b1c3a;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-all-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}


/* ============================
   TOP BRANDS – PRODUCT STYLE
============================ */

.top-brands-products {
  padding: 60px 20px;
}

.top-brands-products .section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #0f172a;
}

.top-brands-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


/* CARD */
.top-brand-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

/* IMAGE */
.top-brand-image {
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2f7, #e5e7eb);
  margin-bottom: 14px;
}

/* TITLE */
.top-brand-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

/* PRICE */
.top-brand-price {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

/* BUTTON */
.top-brand-card button {
  background: #ff2d55;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.top-brand-card button:hover {
  opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .top-brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .top-brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* show only first 8 brand cards */
.top-brands-grid > :nth-child(n+9) {
  display: none;
}


/* =========================
   TESTIMONIALS
========================= */

.testimonials-section {
  background: #eaf2fb;
  padding: 80px 20px;
}

.section-title.center {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 48px;
  color: #0f172a;
}

.testimonials-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 18px;
}

.testimonial-author {
  font-weight: 600;
  color: #0f172a;
}

/* Responsive */
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================
   HOW IT WORKS
========================= */

.how-it-works {
  padding: 80px 20px;
  background: #f1f7ff;
}

.how-it-works h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.how-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: #475569;
  font-size: 15px;
}

/* Grid */
.how-boxes {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Card */
.how-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.how-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}

/* Steps */
.how-step {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.how-step .icon {
  font-size: 20px;
  margin-top: 3px;
}

.how-step strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.how-step p {
  font-size: 14px;
  color: #475569;
  margin: 0;
}

/* Buttons */
.how-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.how-btn.buy {
  background: #2563eb;
  color: #ffffff;
}

.how-btn.sell {
  background: #16a34a;
  color: #ffffff;
}

/* Trust row */
.how-trust {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #0f172a;
}

/* Mobile */
@media (max-width: 900px) {
  .how-boxes {
    grid-template-columns: 1fr;
  }
}


/* =========================
   SCROLL ANIMATIONS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Slight stagger for steps */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

