/* ==========================================================================
   LAMSET NOOR STUDIO — pages/home.css
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: calc(var(--header-h) + 3rem) clamp(4rem, 10vh, 7rem);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}

html[data-theme='light'] .hero__bg video,
html[data-theme='light'] .hero__bg img { filter: saturate(.75) brightness(1.06); }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 42%, var(--bg) 96%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 85%, transparent), transparent 62%);
}
html[dir='rtl'] .hero__scrim {
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 42%, var(--bg) 96%),
    linear-gradient(to left, color-mix(in srgb, var(--bg) 85%, transparent), transparent 62%);
}

/* Light theme footage is bright, so the copy side needs a heavier veil */
html[data-theme='light'] .hero__scrim {
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 45%, var(--bg) 97%),
    linear-gradient(to right, var(--bg) 6%, color-mix(in srgb, var(--bg) 88%, transparent) 34%, transparent 70%);
}
html[data-theme='light'][dir='rtl'] .hero__scrim {
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 45%, var(--bg) 97%),
    linear-gradient(to left, var(--bg) 6%, color-mix(in srgb, var(--bg) 88%, transparent) 34%, transparent 70%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  width: 100%;
}

.hero__content { display: flex; flex-direction: column; gap: 1.7rem; }

.hero__title {
  font-size: var(--fs-hero);
  line-height: .92;
  font-weight: 300;
  letter-spacing: -.02em;
  white-space: nowrap;
}
html[lang='ar'] .hero__title { line-height: 1.22; letter-spacing: 0; }

.hero__title em {
  display: block;
  font-style: italic;
  background: var(--gold-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroSheen 7s var(--ease-soft) infinite alternate;
}
html[lang='ar'] .hero__title em { font-style: normal; }

@keyframes heroSheen {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero__text { max-width: 46ch; font-size: var(--fs-lead); }

.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Right column: rating card + mini reel */
.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.hero-rating {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.4rem 1.7rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-m);
  min-width: 220px;
}

.hero-rating__stars { display: flex; gap: .2rem; color: var(--gold-400); }
.hero-rating__stars svg { width: 15px; height: 15px; }

.hero-rating__score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--text);
}
.hero-rating__score sub { font-size: .9rem; color: var(--text-3); font-family: var(--font-body); }

.hero-rating__label { font-size: var(--fs-micro); letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--text-3); }
html[lang='ar'] .hero-rating__label { letter-spacing: .02em; text-transform: none; font-size: .8rem; }

.hero-chip-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }

/* Scroll hint */
.hero__scroll {
  position: absolute;
  inset-block-end: clamp(1.2rem, 4vh, 2.4rem);
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  font-size: .6rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 18px;
  background: var(--gold-400);
  animation: scrollHint 2.1s var(--ease-soft) infinite;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; align-items: center; }
  .hero__aside { align-items: flex-start; }
  .hero-chip-row { justify-content: flex-start; }
  .hero__content { max-width: none; }

  /* Narrow screens have no empty side for the copy to sit in, so the veil
     becomes a full vertical wash instead of a side gradient. */
  .hero__scrim,
  html[dir='rtl'] .hero__scrim,
  html[data-theme='light'] .hero__scrim,
  html[data-theme='light'][dir='rtl'] .hero__scrim {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 72%, transparent) 0%,
      color-mix(in srgb, var(--bg) 84%, transparent) 34%,
      color-mix(in srgb, var(--bg) 92%, transparent) 66%,
      var(--bg) 100%);
  }

  .hero__bg video,
  .hero__bg img { filter: saturate(.7) contrast(1.02); }
  html[data-theme='light'] .hero__bg video,
  html[data-theme='light'] .hero__bg img { filter: saturate(.55) brightness(1.02); }
}

@media (max-width: 560px) {
  .hero { min-height: 92svh; }
  .hero-rating { min-width: 0; width: 100%; }
  .hero__scroll { display: none; }
}

/* ---------- Intro split ---------- */
.intro__media {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1rem;
  align-items: start;
}

.intro__media .frame:nth-child(1) { aspect-ratio: 3 / 4; }
.intro__media .frame:nth-child(2) { aspect-ratio: 1 / 1; margin-block-start: clamp(2rem, 8vw, 5rem); }

.intro__badge {
  position: absolute;
  inset-block-end: -22px;
  inset-inline-start: -18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  width: 118px;
  height: 118px;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #0A0810;
  box-shadow: var(--shadow-m);
  text-align: center;
}
.intro__badge b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.intro__badge span { font-size: .54rem; letter-spacing: .16em; text-transform: uppercase; max-width: 82px; line-height: 1.3; }
html[lang='ar'] .intro__badge span { letter-spacing: 0; text-transform: none; font-size: .62rem; }

@media (max-width: 620px) {
  .intro__media { grid-template-columns: 1fr; }
  .intro__media .frame:nth-child(2) { display: none; }
  .intro__badge { width: 92px; height: 92px; inset-inline-start: auto; inset-inline-end: -8px; }
}

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-block: 1px solid var(--line);
  position: relative;
}

.stats-band > * + *::before {
  content: '';
  position: absolute;
  inset-block: 12%;
  inset-inline-start: calc(clamp(1rem, 3vw, 2rem) / -2);
  width: 1px;
  background: var(--line-soft);
}
.stats-band > * { position: relative; }

@media (max-width: 700px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stats-band > *:nth-child(odd)::before { display: none; }
}

/* ---------- Services — photo cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.8rem, 1.8vw, 1.4rem);
}

.svc-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  transition: transform var(--t-mid) var(--ease-lux),
              border-color var(--t-mid),
              box-shadow var(--t-mid);
}

.svc-card:hover,
.svc-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-m), var(--glow);
}

.svc-card__media { position: absolute; inset: 0; z-index: -2; }

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease-lux), filter var(--t-mid);
  filter: saturate(.9);
}
.svc-card:hover .svc-card__media img { transform: scale(1.08); filter: saturate(1); }

/* Readability veil — always dark so the copy reads in either theme */
.svc-card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 5, 9, .12) 0%, rgba(6, 5, 9, .55) 46%, rgba(6, 5, 9, .93) 100%);
  transition: opacity var(--t-mid);
}

.svc-card__idx {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1.1rem;
  z-index: 3;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mid);
  color: var(--gold-200);
  opacity: .9;
}

.svc-card__body {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
}

.svc-card__title {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  color: #F7F3EA;
}

.svc-card__text {
  font-size: .84rem;
  line-height: 1.65;
  color: rgba(247, 243, 234, .78);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--t-mid) var(--ease-lux), opacity var(--t-mid) var(--ease-lux);
}
.svc-card:hover .svc-card__text { max-height: 5.4em; opacity: 1; }

.svc-card__go {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--gold-200);
}
html[lang='ar'] .svc-card__go { letter-spacing: .03em; text-transform: none; font-size: .8rem; }
.svc-card__go svg { width: 15px; height: 15px; }

@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .svc-grid { grid-template-columns: repeat(2, 1fr); } }

/* Touch devices never hover, so the copy is shown up front */
@media (hover: none), (pointer: coarse) {
  .svc-card__text { max-height: 5.4em; opacity: 1; }
}

@media (max-width: 420px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .svc-card__title { font-size: 1.02rem; }
  .svc-card__text { display: none; }
  .svc-card__go { font-size: .6rem; }
}

/* ---------- Work preview mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(120px, 15vw, 200px);
  gap: clamp(.6rem, 1.4vw, 1rem);
}

.mosaic__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--surface-2);
}
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-lux), filter var(--t-mid); }
.mosaic__item:hover img { transform: scale(1.08); }

.mosaic__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--img-veil);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.mosaic__item:hover::after { opacity: .8; }

.mosaic__cap {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline: 1.1rem;
  z-index: 2;
  font-size: .74rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--t-mid) var(--ease-lux);
}
html[lang='ar'] .mosaic__cap { letter-spacing: .02em; text-transform: none; font-size: .88rem; }
.mosaic__item:hover .mosaic__cap { opacity: 1; transform: translateY(0); }

.mosaic__item--tall { grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item--big { grid-column: span 2; grid-row: span 2; }

@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic__item--big { grid-column: span 2; grid-row: span 2; }
  .mosaic__item--wide { grid-column: span 2; }
  .mosaic__cap { opacity: 1; transform: none; }
}

/* ---------- Reels strip ---------- */
.reel-strip {
  display: flex;
  gap: clamp(.8rem, 2vw, 1.4rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block-end: 1.2rem;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
.reel-strip::-webkit-scrollbar { height: 4px; }

.reel-strip__item {
  flex: 0 0 clamp(210px, 24vw, 290px);
  scroll-snap-align: start;
}

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }

.why-item {
  display: flex;
  gap: 1.2rem;
  padding-block: 1.4rem;
  border-block-start: 1px solid var(--line-soft);
  transition: border-color var(--t-mid);
}
.why-item:hover { border-block-start-color: var(--gold-400); }

.why-item__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  color: var(--gold-text);
  transition: transform var(--t-mid) var(--ease-back);
}
.why-item:hover .why-item__icon { transform: scale(1.12) rotate(-6deg); }
.why-item__icon svg { width: 100%; height: 100%; }

.why-item__title { font-size: 1.2rem; margin-block-end: .45rem; }
.why-item__text { font-size: .9rem; line-height: 1.75; }

@media (max-width: 940px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews slider (card styles live in components.css) ---------- */
.rev-slider { position: relative; }

.rev-track {
  display: flex;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block-end: 1.4rem;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rev-track::-webkit-scrollbar { display: none; }

.rev-track .rev-card {
  flex: 0 0 clamp(280px, 34vw, 420px);
  scroll-snap-align: center;
}

.rev-nav { display: flex; gap: .6rem; justify-content: center; margin-block-start: 1.6rem; }

@media (max-width: 560px) { .rev-track .rev-card { flex: 0 0 84vw; } }
