/* ==========================================================================
   PYRAMORA — Homepage
   ========================================================================== */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-7);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  animation: hero-bg-in 1.4s var(--ease-out) both;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transform: scale(1.04);
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(20,18,13,0.88) 0%, rgba(20,18,13,0.72) 34%, rgba(20,18,13,0.42) 60%, rgba(20,18,13,0.55) 100%),
    linear-gradient(0deg, rgba(20,18,13,0.5) 0%, rgba(20,18,13,0) 30%);
}
.hero__bg-peak {
  position: absolute;
  left: 0; bottom: 0;
  width: 46%; height: 60%;
  opacity: 0.5;
}
.hero__bg-peak path { fill: none; stroke: var(--pm-gold); stroke-width: 1.5; }
@keyframes hero-bg-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hero__bg { animation: none; } }

.hero__inner { position: relative; z-index: 1; max-width: 780px; }
.hero__inner .eyebrow { color: var(--pm-gold); }
.hero__title {
  font-size: var(--fs-hero);
  margin-bottom: var(--sp-3);
  color: var(--pm-white);
}
.hero__title-gold {
  background: linear-gradient(100deg, var(--pm-gold-deep), var(--pm-gold) 50%, var(--pm-gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { margin-bottom: var(--sp-4); color: rgba(255,255,255,0.82); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.btn--ghost-onphoto { border-color: rgba(255,255,255,0.55); color: var(--pm-white); }
.btn--ghost-onphoto:hover { background: var(--pm-white); color: var(--pm-ink); border-color: var(--pm-white); }
.hero__trust {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 500;
}
.hero__trust .dot { color: var(--pm-gold); }

.hero__scroll-cue {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-cue span {
  display: block;
  width: 1.5px; height: 40px;
  background: linear-gradient(var(--pm-gold-deep), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll-cue { display: none; } }

/* ---- Logo strip ---- */
.logostrip { padding-block: var(--sp-4); border-bottom: 1px solid var(--pm-line); }
.logostrip__inner { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.logostrip__label { font-size: 0.82rem; color: var(--pm-text-muted); letter-spacing: 0.04em; white-space: nowrap; }
.logostrip__list { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.logostrip__list li {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pm-ink-45);
  font-weight: 500;
}

/* ---- Who we are ---- */
.who-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

.who-grid__media { position: relative; }
.who-grid__frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.who-grid__frame img { width: 100%; height: 100%; object-fit: cover; }
.who-grid__logo-card {
  position: absolute;
  top: 20px; left: -20px;
  background: var(--pm-white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 0.7rem 1rem;
}
.who-grid__logo-card img { display: block; height: 34px; width: auto; }
@media (max-width: 560px) { .who-grid__logo-card { left: 12px; top: 12px; padding: 0.5rem 0.7rem; } .who-grid__logo-card img { height: 26px; } }
.who-grid__badge {
  position: absolute;
  bottom: -24px; right: -20px;
  background: var(--pm-ink);
  color: var(--pm-white);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  width: 178px;
  box-shadow: var(--shadow-lg);
}
.who-grid__badge-num { font-family: var(--font-display); font-size: 2rem; color: var(--pm-gold); display: block; line-height: 1; }
.who-grid__badge-label { font-size: 0.78rem; color: rgba(255,255,255,0.75); }

.who-grid__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.pillar { padding: var(--sp-3); background: var(--pm-cream); border-radius: var(--r-md); }
.pillar h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--pm-gold-deep); }
.pillar p { font-size: 0.92rem; color: var(--pm-text-muted); }
@media (max-width: 560px) { .who-grid__pillars { grid-template-columns: 1fr; } }

/* ---- Section head ---- */
.section-head { max-width: 640px; margin-bottom: var(--sp-6); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ---- Why grid ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { padding: var(--sp-4); }
.why-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--pm-gold-pale);
  color: var(--pm-gold-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-2);
}
.why-card__icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.why-card p { font-size: 0.92rem; color: var(--pm-text-muted); }

/* ---- Process rail ---- */
.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  counter-reset: step;
  position: relative;
}
.process-rail::before {
  content: '';
  position: absolute;
  top: 26px; left: 6%; right: 6%;
  height: 1px;
  background: var(--pm-line);
}
@media (max-width: 900px) {
  .process-rail { grid-template-columns: 1fr 1fr; }
  .process-rail::before { display: none; }
}
@media (max-width: 560px) { .process-rail { grid-template-columns: 1fr; } }
.process-step { position: relative; background: var(--pm-white); padding-top: 4px; }
.process-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--pm-ink);
  color: var(--pm-gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--sp-2);
  position: relative;
  z-index: 1;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.92rem; color: var(--pm-text-muted); }

/* ---- Product scroller ---- */
.product-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: var(--sp-3);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.product-tile { overflow: hidden; scroll-snap-align: start; }
.product-tile img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.product-tile:hover img { transform: scale(1.06); }
.product-tile__body { padding: var(--sp-3); }
.product-tile__body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.product-tile__body p { font-size: 0.88rem; color: var(--pm-text-muted); }

/* ---- Industries grid ---- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .industries-grid { grid-template-columns: 1fr 1fr; } }
.industry-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3.2;
  display: block;
}
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.industry-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,13,0) 40%, rgba(20,18,13,0.75) 100%);
}
.industry-card span {
  position: absolute; left: var(--sp-2); bottom: var(--sp-2); z-index: 1;
  color: var(--pm-white); font-family: var(--font-display); font-size: 1.05rem;
}
.industry-card:hover img { transform: scale(1.08); }

/* ---- Stats ---- */
.stats { background: var(--pm-ink); color: var(--pm-white); text-align: center; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 700px) { .stats__grid { grid-template-columns: 1fr 1fr; } }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--pm-gold);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__num--text { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.stat__label { font-size: 0.85rem; color: rgba(255,255,255,0.65); letter-spacing: 0.03em; }
.stats__note { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: var(--sp-4); }

/* ---- Showcase ---- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-3);
  height: 560px;
}
.showcase-grid__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.showcase-grid__img--lg { grid-row: 1 / 3; }
@media (max-width: 760px) {
  .showcase-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .showcase-grid__img--lg { grid-row: auto; aspect-ratio: 4/3; }
  .showcase-grid__img:not(.showcase-grid__img--lg) { aspect-ratio: 16/9; height: auto; }
}

/* ---- Promise ---- */
.promise { text-align: center; position: relative; overflow: hidden; }
.promise__watermark {
  position: absolute;
  top: 50%; right: -4%;
  width: 380px; max-width: 40%;
  transform: translateY(-50%);
  mix-blend-mode: multiply;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 700px) { .promise__watermark { display: none; } }
.promise__inner { max-width: 900px; margin-inline: auto; position: relative; z-index: 1; }
.promise h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-5); }
.promise__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); text-align: left; }
@media (max-width: 700px) { .promise__grid { grid-template-columns: 1fr; text-align: center; } }
.promise__grid h3 { font-size: 1.1rem; color: var(--pm-gold-deep); margin-bottom: 0.4rem; }
.promise__grid p { font-size: 0.92rem; color: var(--pm-text-muted); }

/* ---- Testimonials ---- */
.testimonial-slider { max-width: 780px; margin-inline: auto; text-align: center; }
.testimonial-slider__track { display: flex; transition: transform var(--dur-slow) var(--ease-inout); }
.testimonial-slide { min-width: 100%; flex-shrink: 0; padding: 0 var(--sp-3); }
.testimonial-slide p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--pm-ink);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-3);
}
.testimonial-slide footer { font-size: 0.88rem; color: var(--pm-gold-deep); font-weight: 600; }
.testimonial-slide p[lang="ar"] { font-family: 'Cairo', var(--font-body); font-weight: 600; line-height: 1.9; }
.testimonial-slide footer[lang="ar"] { font-family: 'Cairo', var(--font-body); }
.testimonial-slider__controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.testimonial-slider__controls button[data-slide-prev], .testimonial-slider__controls button[data-slide-next] {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pm-line);
  display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast);
}
.testimonial-slider__controls button[data-slide-prev]:hover, .testimonial-slider__controls button[data-slide-next]:hover { background: var(--pm-cream); }
.testimonial-slider__dots { display: flex; gap: 0.5rem; }
.testimonial-slider__dots button {
  width: 8px; height: 8px; border-radius: 50%; background: var(--pm-ink-12); transition: background var(--dur-fast), transform var(--dur-fast);
}
.testimonial-slider__dots button.is-active { background: var(--pm-gold-deep); transform: scale(1.3); }

/* ---- FAQ preview ---- */
.faq-preview { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-6); }
@media (max-width: 800px) { .faq-preview { grid-template-columns: 1fr; } }
.faq-item { border-bottom: 1px solid var(--pm-line); }
.faq-item__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) 0; text-align: left; font-weight: 600; font-size: 1rem; min-height: 44px;
}
.faq-item__icon { font-size: 1.3rem; color: var(--pm-gold-deep); transition: transform var(--dur-med) var(--ease-out); }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-out); }
.faq-item__panel p { padding-bottom: var(--sp-3); color: var(--pm-text-muted); font-size: 0.94rem; max-width: 60ch; }

/* ---- Newsletter ---- */
.newsletter__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-5); align-items: center; }
@media (max-width: 800px) { .newsletter__inner { grid-template-columns: 1fr; } }
.newsletter__form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.newsletter__form input {
  flex: 1; min-width: 200px; padding: 0.95rem 1.2rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--pm-line); background: var(--pm-white);
}
.form-status { width: 100%; font-size: 0.85rem; margin-top: 0.5rem; color: var(--pm-gold-deep); }

/* ---- Final CTA ---- */
.cta-final {
  background: linear-gradient(135deg, var(--pm-ink) 0%, #241f14 100%);
  color: var(--pm-white);
  padding-block: var(--sp-8);
  text-align: center;
}
.cta-final__inner { max-width: 720px; margin-inline: auto; }
.cta-final h2 { color: var(--pm-white); font-size: var(--fs-h1); margin-bottom: var(--sp-2); }
.cta-final .lead { color: rgba(255,255,255,0.65); margin-inline: auto; margin-bottom: var(--sp-4); }
.cta-final__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
