/* =============================================================
   Essence Arab — Homepage
   ============================================================= */

/* ——— Hero ——— */
.ea-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.ea-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(17,16,8,0.85) 0%, rgba(26,18,8,0.75) 40%, rgba(11,11,11,0.9) 100%);
  z-index: 1;
}

.ea-hero__glow {
  position: absolute;
  top: 50%;
  right: 30%;
  transform: translate(50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.ea-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 8rem 6rem;
}

.ea-hero__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.ea-hero__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.5);
  margin-bottom: 1.5rem;
}

.ea-hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0;
}
.ea-hero__title-line1 {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-white);
}
.ea-hero__title-line2 {
  display: block;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-style: italic;
  color: var(--color-gold);
}

.ea-hero__divider {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  border: none;
  margin: 2rem auto;
}

.ea-hero__subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.8;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.ea-hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.ea-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ea-hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
  animation: ea-scroll-pulse 2s ease-in-out infinite;
}
@keyframes ea-scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ——— Collections ——— */
.ea-collections { background: var(--color-bg); }

.ea-collections__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ea-collection-card {
  display: block;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
  overflow: hidden;
}
.ea-collection-card:hover { border-color: var(--color-gold); }

.ea-collection-card__img {
  position: relative;
  height: 240px;
  background: var(--color-bg-card);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ea-collection-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,11,11,0.4);
  transition: background 0.3s ease;
}
.ea-collection-card:hover .ea-collection-card__overlay {
  background: rgba(11,11,11,0.6);
}
.ea-collection-card__icon {
  position: relative;
  z-index: 1;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}
.ea-collection-card__icon svg { width: 40px; height: 40px; }
.ea-collection-card:hover .ea-collection-card__icon { transform: scale(1.1); }

.ea-collection-card__body {
  padding: 1.25rem;
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ea-collection-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-white);
}
.ea-collection-card__cta {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  transition: letter-spacing 0.2s;
}
.ea-collection-card:hover .ea-collection-card__cta { letter-spacing: 0.25em; }

/* Product card styles → shop.css (shared with WooCommerce archive) */

.ea-featured-products__more {
  text-align: center;
  margin-top: var(--space-md);
}

/* ——— Why Us ——— */
.ea-why-us {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.ea-why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.ea-why-us__item {
  text-align: center;
  padding: 2rem 1rem;
}
.ea-why-us__icon {
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}
.ea-why-us__icon svg { width: 36px; height: 36px; display: inline-block; }
.ea-why-us__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.ea-why-us__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* ——— Storytelling ——— */
.ea-storytelling { background: var(--color-bg-deep); }

.ea-storytelling__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.ea-storytelling__img-wrap {
  position: relative;
  border: 1px solid var(--color-border);
}
.ea-storytelling__img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}
.ea-storytelling__img-placeholder {
  width: 100%;
  height: 560px;
  background: linear-gradient(160deg, var(--color-bg-card), var(--color-bg-deep));
}
.ea-storytelling__img-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,0.1), transparent 70%);
  pointer-events: none;
}

.ea-storytelling__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 0;
  margin-top: 0.75rem;
}
.ea-storytelling__text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-top: 1.25rem;
}

/* ——— Testimonials ——— */
.ea-testimonials { background: var(--color-bg); }

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

.ea-testimonial {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  padding: 2rem;
  transition: border-color 0.3s ease;
}
.ea-testimonial:hover { border-color: var(--color-border); }

.ea-testimonial__stars {
  color: var(--color-gold);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.ea-testimonial__text {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.ea-testimonial__text::before { content: '"'; }
.ea-testimonial__text::after  { content: '"'; }

.ea-testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ea-testimonial__name {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.ea-testimonial__location {
  font-size: 0.75rem;
  color: rgba(212,175,55,0.4);
}

/* ——— Newsletter ——— */
.ea-newsletter {
  background: var(--color-bg-newsletter);
  border-top: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  padding-block: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Background image mode */
.ea-newsletter--has-bg {
  background-image: var(--nl-bg);
  background-size: cover;
  background-position: center;
  border-top-color: transparent;
  border-bottom-color: transparent;
}
.ea-newsletter__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 7, 0.72);
  pointer-events: none;
}
.ea-newsletter--has-bg .ea-container { position: relative; z-index: 1; }

.ea-newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.ea-newsletter__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--color-white);
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.ea-newsletter__subtitle {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.8;
}

.ea-newsletter__field {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
}
.ea-newsletter__input {
  flex: 1;
  background: rgba(11,11,11,0.6);
  border: 1px solid var(--color-border);
  border-right: none;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: border-color 0.2s;
}
.ea-newsletter__input::placeholder { color: var(--color-muted); }
.ea-newsletter__input:focus { outline: none; border-color: var(--color-gold); }

.ea-newsletter__btn {
  flex-shrink: 0;
  padding-inline: 1.75rem;
  font-size: 0.6875rem;
}

.ea-newsletter__disclaimer {
  font-size: 0.75rem;
  color: var(--color-muted);
  opacity: 0.6;
}
.ea-newsletter__disclaimer a,
.ea-newsletter__privacy a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Shortcode container — reset plugin styles minimally */
.ea-newsletter__shortcode { width: 100%; }

/* Feedback notices */
.ea-newsletter__notice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  border-left: 2px solid;
}
.ea-newsletter__notice--success {
  background: rgba(180, 143, 90, 0.12);
  border-left-color: var(--color-gold);
  color: var(--color-gold);
}
.ea-newsletter__notice--error {
  background: rgba(180, 60, 60, 0.12);
  border-left-color: #c0392b;
  color: #e07070;
}

/* ——— Responsive: Homepage ——— */
@media (max-width: 1024px) {
  .ea-hero__content { padding-block: 5rem 3.5rem; }
  .ea-collections__grid,
  .ea-products-grid,
  .ea-why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ea-storytelling__grid,
  .ea-newsletter__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .ea-storytelling__img,
  .ea-storytelling__img-placeholder { height: 380px; }
  .ea-testimonials__grid { grid-template-columns: 1fr; }
  .ea-section-header { margin-bottom: var(--space-md); }
}

@media (max-width: 768px) {
  .ea-hero__content { padding-block: 4.5rem 3rem; }
  .ea-storytelling__img,
  .ea-storytelling__img-placeholder { height: 320px; }
  .ea-collection-card__img { height: 200px; }
}

@media (max-width: 640px) {
  .ea-hero__content { padding-block: 3.5rem 2.5rem; }
  .ea-hero__inner { max-width: 100%; }
  .ea-hero__ctas { flex-direction: column; gap: 1rem; }

  .ea-collections__grid { grid-template-columns: 1fr 1fr; }
  .ea-collection-card__img { height: 160px; }
  .ea-products-grid { grid-template-columns: 1fr 1fr; }

  .ea-why-us__grid { grid-template-columns: 1fr 1fr; }
  .ea-why-us__item { padding: 1.25rem 0.5rem; }
  .ea-why-us__icon svg { width: 28px; height: 28px; }

  .ea-storytelling__img,
  .ea-storytelling__img-placeholder { height: 240px; }

  .ea-newsletter__field { flex-direction: column; gap: 0.75rem; }
  .ea-newsletter__input { border-right: 1px solid var(--color-border); }
  .ea-newsletter__btn { width: 100%; justify-content: center; }

  /* Testimonials: horizontal scroll snap on mobile */
  .ea-testimonials__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1.25rem;
    grid-template-columns: unset;
  }
  .ea-testimonial {
    scroll-snap-align: start;
    flex: 0 0 82vw;
  }
}

@media (max-width: 480px) {
  .ea-collections__grid { grid-template-columns: 1fr; }
  .ea-collection-card__img { height: 200px; }
  .ea-products-grid { grid-template-columns: 1fr; }
}
