/* ═══════════════════════════════════════════════════
   AL EHDA — HOMEPAGE STYLES
   File: /assets/css/home.css
   ═══════════════════════════════════════════════════ */

/* ── SHARED SECTION UTILITIES ──────────────────────── */
.ae-section { padding: var(--ae-sp-16) 0; }

.ae-section-head {
  text-align: center;
  margin-bottom: var(--ae-sp-10);
}
.ae-section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: var(--ae-weight-bold);
  color: var(--ae-primary);
  margin-bottom: var(--ae-sp-3);
}
.ae-section-subtitle {
  color: var(--ae-gray-500);
  font-size: var(--ae-text-base);
  margin: 0 auto;
  max-width: 520px;
}
.ae-section-head--light .ae-section-title { color: var(--ae-white); }
.ae-section-head--light .ae-section-subtitle { color: rgba(255,255,255,0.70); }

.ae-section-head__link {
  margin-top: var(--ae-sp-4);
  display: inline-block;
}

/* ══════════════════════════════════════════════════
   1. HERO BANNER
   ══════════════════════════════════════════════════ */
.ae-hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: var(--ae-sp-20) 0 var(--ae-sp-16);
  background: linear-gradient(135deg,
    var(--ae-primary-dark) 0%,
    var(--ae-primary) 50%,
    #2a2f5c 100%);
  overflow: hidden;
}

/* Blob decorations */
.ae-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.ae-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.ae-hero__blob--1 {
  width: 600px; height: 600px;
  background: var(--ae-accent);
  top: -200px; right: -100px;
}
.ae-hero__blob--2 {
  width: 400px; height: 400px;
  background: #4f6ef7;
  bottom: -150px; left: -80px;
}

/* Inner 2-column grid */
.ae-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--ae-sp-12);
}

/* Eyebrow badge */
.ae-hero__eyebrow {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--ae-accent);
  font-size: var(--ae-text-sm);
  font-weight: var(--ae-weight-semi);
  padding: 6px 14px;
  border-radius: var(--ae-r-full);
  margin-bottom: var(--ae-sp-5);
  letter-spacing: 0.04em;
}

/* Headline */
.ae-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: var(--ae-weight-black);
  color: var(--ae-white);
  line-height: 1.15;
  margin-bottom: var(--ae-sp-5);
}
.ae-hero__title-accent {
  color: var(--ae-accent);
  position: relative;
  display: inline-block;
}
.ae-hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: var(--ae-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: ae-underline-reveal 0.6s 0.4s ease forwards;
}
@keyframes ae-underline-reveal {
  to { transform: scaleX(1); }
}

/* Subtitle */
.ae-hero__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: var(--ae-text-lg);
  line-height: 1.7;
  margin-bottom: var(--ae-sp-7);
  max-width: 480px;
}

/* Trust badges */
.ae-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ae-sp-4);
  margin-bottom: var(--ae-sp-8);
}
.ae-trust-item {
  display: flex;
  align-items: center;
  gap: var(--ae-sp-2);
  color: rgba(255,255,255,0.80);
  font-size: var(--ae-text-sm);
  font-weight: var(--ae-weight-medium);
}
.ae-trust-item svg { color: var(--ae-accent); flex-shrink: 0; }

/* CTA buttons */
.ae-hero__ctas { display: flex; gap: var(--ae-sp-4); flex-wrap: wrap; }

/* ── RIGHT: Book visual ── */
.ae-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Book 3D tilt */
.ae-hero__book-wrap {
  position: relative;
  display: inline-block;
  transform: perspective(800px) rotateY(-10deg);
  transition: transform 0.4s ease;
}
.ae-hero__book-wrap:hover {
  transform: perspective(800px) rotateY(-4deg) translateY(-6px);
}
.ae-hero__book {
  position: relative;
  border-radius: var(--ae-r-lg);
  overflow: hidden;
  box-shadow:
    20px 20px 60px rgba(0,0,0,0.50),
    -5px -5px 20px rgba(255,255,255,0.06);
}
.ae-hero__book-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
}
.ae-hero__book-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(201,168,76,0.25) 0%, transparent 70%);
  z-index: -1;
  filter: blur(30px);
}

/* Price badge on book */
.ae-hero__price-badge {
  position: absolute;
  bottom: 16px; right: -12px;
  background: var(--ae-white);
  border-radius: var(--ae-r-lg);
  padding: 10px 16px;
  box-shadow: var(--ae-shadow-lg);
  text-align: center;
  z-index: 2;
}
.ae-hero__price-label {
  display: block;
  font-size: var(--ae-text-xs);
  color: var(--ae-gray-500);
}
.ae-hero__price-amount {
  font-size: var(--ae-text-xl);
  font-weight: var(--ae-weight-black);
  color: var(--ae-primary);
}

/* Placeholder stacked books */
.ae-hero__placeholder { position: relative; width: 280px; height: 320px; }
.ae-hero__placeholder-stack { position: absolute; inset: 0; }
.ae-book-card {
  position: absolute;
  border-radius: var(--ae-r-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.ae-book-card--3 { width: 220px; height: 280px; top: 40px; left: 40px; transform: rotate(6deg); }
.ae-book-card--2 { width: 230px; height: 290px; top: 20px; left: 20px; transform: rotate(3deg); }
.ae-book-card--1 {
  width: 240px; height: 300px; top: 0; left: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--ae-sp-4);
  font-size: 3rem;
}
.ae-book-card--1 p { font-size: var(--ae-text-base); color: var(--ae-white); text-align: center; padding: 0 1rem; }

/* Floating stat cards */
.ae-hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--ae-sp-3);
  background: var(--ae-white);
  border-radius: var(--ae-r-xl);
  padding: 10px 16px;
  box-shadow: var(--ae-shadow-lg);
  animation: ae-float 3s ease-in-out infinite;
}
.ae-hero__float--1 { top: 10%; right: -10px; animation-delay: 0s; }
.ae-hero__float--2 { bottom: 15%; left: -20px; animation-delay: 1.5s; }
.ae-hero__float-icon { font-size: 1.6rem; }
.ae-hero__float strong {
  display: block;
  font-size: var(--ae-text-base);
  font-weight: var(--ae-weight-black);
  color: var(--ae-primary);
}
.ae-hero__float small {
  font-size: var(--ae-text-xs);
  color: var(--ae-gray-500);
}
@keyframes ae-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Scroll indicator */
.ae-hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.50);
  font-size: var(--ae-text-xs);
}
.ae-scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,0.50);
  border-bottom: 2px solid rgba(255,255,255,0.50);
  transform: rotate(45deg);
  animation: ae-scroll-bounce 1.5s ease-in-out infinite;
}
@keyframes ae-scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50%       { transform: rotate(45deg) translateY(4px); opacity: 1; }
}

/* ══════════════════════════════════════════════════
   2. STATS BAR
   ══════════════════════════════════════════════════ */
.ae-stats {
  background: var(--ae-white);
  border-top: 1px solid var(--ae-gray-100);
  border-bottom: 1px solid var(--ae-gray-100);
  padding: var(--ae-sp-8) 0;
  box-shadow: var(--ae-shadow-sm);
}
.ae-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.ae-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ae-sp-2);
  padding: var(--ae-sp-6);
  text-align: center;
  position: relative;
}
.ae-stats__item + .ae-stats__item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--ae-gray-200);
}
.ae-stats__icon { font-size: 2rem; }
.ae-stats__value {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: var(--ae-weight-black);
  color: var(--ae-primary);
  line-height: 1;
}
.ae-stats__label {
  font-size: var(--ae-text-sm);
  color: var(--ae-gray-500);
}

/* ══════════════════════════════════════════════════
   3. CATEGORIES
   ══════════════════════════════════════════════════ */
.ae-categories { background: var(--ae-gray-50); }

.ae-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ae-sp-6);
}

.ae-cat-card {
  display: flex;
  align-items: center;
  gap: var(--ae-sp-4);
  background: var(--ae-white);
  border-radius: var(--ae-r-xl);
  padding: var(--ae-sp-5);
  border: 1.5px solid var(--ae-gray-100);
  text-decoration: none;
  transition: all var(--ae-normal);
  cursor: pointer;
}
.ae-cat-card:hover {
  border-color: var(--ae-accent);
  box-shadow: var(--ae-shadow-md);
  transform: translateY(-3px);
}
.ae-cat-card--placeholder { opacity: 0.6; pointer-events: none; }

.ae-cat-card__visual {
  width: 60px; height: 60px;
  border-radius: var(--ae-r-lg);
  background: linear-gradient(135deg, rgba(201,168,76,0.10), rgba(201,168,76,0.05));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.ae-cat-card__icon { font-size: 1.8rem; line-height: 1; }
.ae-cat-card__img { width: 100%; height: 100%; object-fit: cover; }

.ae-cat-card__body { flex: 1; min-width: 0; }
.ae-cat-card__name {
  font-size: var(--ae-text-base);
  font-weight: var(--ae-weight-semi);
  color: var(--ae-primary);
  margin: 0 0 var(--ae-sp-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ae-cat-card__count {
  font-size: var(--ae-text-xs);
  color: var(--ae-gray-500);
}
.ae-cat-card__arrow {
  color: var(--ae-accent);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--ae-fast);
  flex-shrink: 0;
}
.ae-cat-card:hover .ae-cat-card__arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════
   4. FEATURED PRODUCTS
   ══════════════════════════════════════════════════ */
.ae-featured { background: var(--ae-white); }

.ae-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ae-sp-7);
}

.ae-product-card {
  background: var(--ae-white);
  border-radius: var(--ae-r-2xl);
  border: 1.5px solid var(--ae-gray-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--ae-normal);
}
.ae-product-card:hover {
  box-shadow: var(--ae-shadow-xl);
  transform: translateY(-4px);
  border-color: var(--ae-accent);
}

/* Image area */
.ae-product-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ae-gray-100);
}
.ae-product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ae-product-card:hover .ae-product-card__img { transform: scale(1.04); }

/* Badge overlay */
.ae-product-card__badges {
  position: absolute;
  top: var(--ae-sp-3); left: var(--ae-sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--ae-sp-1);
}
.ae-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--ae-weight-bold);
  padding: 3px 8px;
  border-radius: var(--ae-r-full);
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.ae-badge-new      { background: #10b981; color: #fff; }
.ae-badge-sale     { background: #ef4444; color: #fff; }
.ae-badge-purchased{ background: var(--ae-primary); color: #fff; }

/* Preview tag */
.ae-product-card__preview-tag {
  position: absolute;
  bottom: var(--ae-sp-3); right: var(--ae-sp-3);
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: var(--ae-white);
  font-size: var(--ae-text-xs);
  padding: 4px 10px;
  border-radius: var(--ae-r-full);
}

/* Card body */
.ae-product-card__body { padding: var(--ae-sp-5); flex: 1; display: flex; flex-direction: column; gap: var(--ae-sp-2); }
.ae-product-card__meta { display: flex; gap: var(--ae-sp-2); flex-wrap: wrap; }
.ae-tag {
  display: inline-block;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--ae-accent);
  font-size: 11px;
  font-weight: var(--ae-weight-semi);
  padding: 2px 8px;
  border-radius: var(--ae-r-full);
}
.ae-product-card__title {
  font-size: var(--ae-text-base);
  font-weight: var(--ae-weight-semi);
  color: var(--ae-primary);
  margin: 0;
  line-height: 1.4;
}
.ae-product-card__title a { color: inherit; text-decoration: none; }
.ae-product-card__title a:hover { color: var(--ae-accent); }
.ae-product-card__excerpt {
  font-size: var(--ae-text-sm);
  color: var(--ae-gray-500);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ae-product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--ae-sp-2);
  margin-top: auto;
}
.ae-product-card__review-count {
  font-size: var(--ae-text-xs);
  color: var(--ae-gray-400);
}

/* Star system (used in ratings and testimonials) */
.ae-stars { display: inline-flex; gap: 2px; }
.ae-star, .ae-star-half, .ae-star-empty {
  width: 14px; height: 14px;
  font-size: 14px;
  line-height: 1;
}
.ae-star       { color: #f59e0b; }
.ae-star-half  { color: #f59e0b; }
.ae-star-empty { color: var(--ae-gray-300); }

/* Card footer */
.ae-product-card__footer {
  padding: var(--ae-sp-4) var(--ae-sp-5) var(--ae-sp-5);
  border-top: 1px solid var(--ae-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ae-sp-3);
}
.ae-product-card__price { font-size: var(--ae-text-lg); font-weight: var(--ae-weight-black); color: var(--ae-primary); }
.ae-product-card__price .woocommerce-Price-currencySymbol { font-size: 0.85em; }
.ae-product-card__price ins { text-decoration: none; }
.ae-product-card__price del { color: var(--ae-gray-400); font-size: 0.85em; margin-right: 4px; }

/* ══════════════════════════════════════════════════
   5. WHY US
   ══════════════════════════════════════════════════ */
.ae-why-us {
  background: linear-gradient(135deg, var(--ae-primary-dark) 0%, var(--ae-primary) 100%);
}

.ae-why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ae-sp-7);
}

.ae-feature-card {
  text-align: center;
  padding: var(--ae-sp-8) var(--ae-sp-5);
  border-radius: var(--ae-r-2xl);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  transition: all var(--ae-normal);
}
.ae-feature-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-4px);
}
.ae-feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--ae-sp-5);
  display: block;
}
.ae-feature-card__title {
  font-size: var(--ae-text-lg);
  font-weight: var(--ae-weight-bold);
  color: var(--ae-white);
  margin-bottom: var(--ae-sp-3);
}
.ae-feature-card__desc {
  font-size: var(--ae-text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════
   6. TESTIMONIALS
   ══════════════════════════════════════════════════ */
.ae-testimonials { background: var(--ae-gray-50); }

.ae-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ae-sp-7);
}

.ae-testimonial-card {
  background: var(--ae-white);
  border-radius: var(--ae-r-2xl);
  padding: var(--ae-sp-8);
  border: 1.5px solid var(--ae-gray-100);
  display: flex;
  flex-direction: column;
  gap: var(--ae-sp-5);
  margin: 0;
  transition: all var(--ae-normal);
  position: relative;
}
.ae-testimonial-card:hover {
  box-shadow: var(--ae-shadow-md);
  border-color: var(--ae-accent);
}
.ae-testimonial-card::before {
  content: '"';
  position: absolute;
  top: -8px; left: var(--ae-sp-6);
  font-size: 5rem;
  line-height: 1;
  color: var(--ae-accent);
  opacity: 0.15;
  font-family: Georgia, serif;
}

.ae-testimonial-card__stars { display: flex; gap: 2px; }
.ae-testimonial-card__text {
  font-style: italic;
  color: var(--ae-gray-600);
  line-height: 1.8;
  margin: 0;
  font-size: var(--ae-text-base);
  flex: 1;
}
.ae-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--ae-sp-4);
}
.ae-testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ae-accent), var(--ae-primary));
  color: var(--ae-white);
  font-size: var(--ae-text-sm);
  font-weight: var(--ae-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ae-testimonial-card__name {
  display: block;
  font-style: normal;
  font-weight: var(--ae-weight-semi);
  color: var(--ae-primary);
  font-size: var(--ae-text-base);
}
.ae-testimonial-card__role {
  display: block;
  font-size: var(--ae-text-xs);
  color: var(--ae-gray-500);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════
   7. CTA BANNER
   ══════════════════════════════════════════════════ */
.ae-cta-banner {
  background: linear-gradient(135deg, var(--ae-accent) 0%, #e8b84b 50%, #d4a040 100%);
  padding: var(--ae-sp-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ae-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,0,0,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.ae-cta-banner__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ae-sp-8);
}
.ae-cta-banner__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: var(--ae-weight-black);
  color: var(--ae-primary);
  line-height: 1.2;
  margin: 0;
}
.ae-cta-banner__subtitle {
  font-size: var(--ae-text-lg);
  color: rgba(27,31,59,0.75);
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
}
.ae-cta-banner__actions {
  display: flex;
  gap: var(--ae-sp-4);
  flex-wrap: wrap;
  justify-content: center;
}
/* Override primary btn colors on gold bg */
.ae-cta-banner .ae-btn-primary {
  background: var(--ae-primary);
  color: var(--ae-white);
  border-color: var(--ae-primary);
}
.ae-cta-banner .ae-btn-primary:hover {
  background: var(--ae-primary-dark);
  border-color: var(--ae-primary-dark);
}

/* ══════════════════════════════════════════════════
   8. RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ae-hero__inner      { grid-template-columns: 1fr; text-align: center; }
  .ae-hero__visual     { display: none; }          /* hide on tablet, show content */
  .ae-hero__trust      { justify-content: center; }
  .ae-hero__ctas       { justify-content: center; }
  .ae-hero__subtitle   { max-width: 100%; }

  .ae-stats__grid         { grid-template-columns: repeat(2, 1fr); }
  .ae-stats__item + .ae-stats__item::before { display: none; }

  .ae-categories__grid    { grid-template-columns: repeat(2, 1fr); }
  .ae-products-grid       { grid-template-columns: repeat(2, 1fr); }
  .ae-why-us__grid        { grid-template-columns: repeat(2, 1fr); }
  .ae-testimonials__grid  { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .ae-hero            { min-height: 75vh; padding: var(--ae-sp-16) 0; }
  .ae-hero__title     { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .ae-hero__subtitle  { font-size: var(--ae-text-base); }
  .ae-hero__ctas      { flex-direction: column; align-items: center; }

  .ae-stats__grid         { grid-template-columns: repeat(2, 1fr); gap: var(--ae-sp-1); }
  .ae-stats__item         { padding: var(--ae-sp-4) var(--ae-sp-3); }

  .ae-categories__grid    { grid-template-columns: 1fr; }
  .ae-products-grid       { grid-template-columns: 1fr; }
  .ae-why-us__grid        { grid-template-columns: 1fr; }

  .ae-cta-banner__actions { flex-direction: column; }
  .ae-cta-banner .ae-btn  { width: 100%; max-width: 320px; }
}
