/* ════════════════════════════════════════════════════════
   ALBIR — pages/home.css
════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 var(--space-3xl);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: var(--space-2xl);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-xl);
  width: 100%;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-inline: var(--space-lg);
    gap: var(--space-xl);
    justify-items: center;
  }
  .hero__door { display: none; }
  .hero__content { margin-inline: auto; }
}

@media (max-width: 480px) {
  .hero__inner { padding-inline: var(--space-md); }
  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: var(--space-2xl);
  }
}

.hero__content {
  max-width: 480px;
  width: 100%;
}

.hero__tagline {
  font-family: var(--font-arabic);
  font-size: clamp(3rem, 8vw, 6rem);
  color: rgba(255,255,255,0.10);
  line-height: 1;
  margin-bottom: var(--space-lg);
  display: block;
}

.hero__label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  max-width: 38ch;
}

@media (max-width: 900px) {
  .hero__sub { margin-inline: auto; }
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero__cta { justify-content: center; }
}

/* Ghost secondary button in hero */
.btn--ghost {
  opacity: 0.55;
}
.btn--ghost:hover { opacity: 1; }

/* Zanzibar Door SVG decoration */
.hero__door {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__door-svg {
  width: min(360px, 100%);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(200,169,110,0.06));
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.3);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ── Featured Products Section ─────────────────────── */
.featured-section {
  padding: var(--space-3xl) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ── Brand Story ───────────────────────────────────── */
.brand-story {
  padding: var(--space-3xl) 0;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.brand-story__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-story__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

@media (max-width: 768px) {
  .brand-story__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-inline: var(--space-lg);
  }
}

.brand-story__label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}

.brand-story__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.brand-story__text {
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  margin-bottom: var(--space-xl);
  max-width: 44ch;
}

.brand-story__arabic {
  font-family: var(--font-arabic);
  font-size: clamp(3rem, 8vw, 8rem);
  color: rgba(255,255,255,0.05);
  text-align: right;
  direction: rtl;
  line-height: 1;
  user-select: none;
}

.brand-story__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brand-story__logo-wrap {
  margin-top: var(--space-xl);
  opacity: 0.4;
}

.brand-story__logo {
  height: 70px;
  width: auto;
}

.brand-story__img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
}

.brand-story__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease);
  display: block;
}

.brand-story__img-wrap:hover img {
  transform: scale(1.04);
}

/* Newsletter styles moved to layout.css (inside footer) */

/* ── Category Tiles ────────────────────────────────── */
.category-section {
  padding: var(--space-3xl) 0;
  background: var(--gray-50);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; gap: var(--space-sm); }
}

.category-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background: var(--gray-700);
}

.category-tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s var(--ease);
}

.category-tile:hover .category-tile__bg img {
  transform: scale(1.06);
}

.category-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.05) 100%
  );
}

.category-tile__content {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  color: var(--white);
}

.category-tile__arabic {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  opacity: 0.55;
  display: block;
  direction: rtl;
  margin-bottom: 4px;
}

.category-tile__name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  display: block;
  line-height: 1.1;
}

.category-tile__count {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* ── Lifestyle Strip ───────────────────────────────── */
.lifestyle-strip {
  padding: 0;
  background: var(--black);
  overflow: hidden;
}

.lifestyle-strip__inner {
  display: flex;
  gap: 3px;
}

.lifestyle-strip__img {
  flex: 1;
  min-width: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-700);
}

.lifestyle-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.lifestyle-strip__img:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .lifestyle-strip__inner { gap: 2px; }
  .lifestyle-strip__img:nth-child(n+4) { display: none; }
}

@media (max-width: 480px) {
  .lifestyle-strip__img:nth-child(n+3) { display: none; }
  .lifestyle-strip__img { aspect-ratio: 1 / 1; }
}

/* ── WhatsApp CTA Banner ───────────────────────────── */
.whatsapp-banner {
  background: var(--black);
  color: var(--white);
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.whatsapp-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .whatsapp-banner__inner {
    flex-direction: column;
    text-align: center;
    padding-inline: var(--space-lg);
  }
}

.whatsapp-banner__text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 4px;
}

.whatsapp-banner__text p {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  max-width: none;
}
