/* Homepage — full UI redesign (scoped to .page-home) */

.page-home {
  --home-max: 1240px;
  --home-pad: clamp(1.25rem, 4vw, 2.5rem);
  --home-section: clamp(4.5rem, 9vw, 7rem);
  --header-h: 80px;
}

.page-home .page-main {
  overflow-x: clip;
  padding-top: 0;
}

/* Header + logo — must load after main (do not shrink below global sizes) */
.page-home .header {
  height: 80px;
  min-height: 80px;
  background: var(--header-bg);
}

[data-theme="dark"] .page-home .header {
  background: var(--header-bg);
}

.page-home .nav-logo-full .logo-img-full {
  height: 48px;
  max-height: 48px;
  max-width: min(280px, 36vw);
}

/* —— Hero —— */
.home-hero {
  position: relative;
  min-height: min(100vh, 900px);
  min-height: min(100dvh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--hero-bg);
  color: #f4f2ef;
  isolation: isolate;
}

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

.home-hero__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 65% 50% at 78% 12%, rgba(187, 152, 93, 0.18), transparent 58%),
    radial-gradient(ellipse 45% 40% at 8% 88%, rgba(187, 152, 93, 0.06), transparent 52%),
    linear-gradient(168deg, #0f1011 0%, #1c1d1e 38%, #252628 62%, #141516 100%);
  animation: homeMesh 22s ease-in-out infinite;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(187, 152, 93, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 152, 93, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 75% at 45% 45%, #000 15%, transparent 72%);
}

@keyframes homeMesh {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.04) translate(-1%, 1%); }
}

.home-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.home-hero__line {
  position: absolute;
  inset-block: 12%;
  inset-inline-end: -5%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(187, 152, 93, 0.5), transparent);
  transform: rotate(-8deg);
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}

@media (min-width: 1024px) {
  .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.home-hero__copy {
  max-width: 40rem;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(187, 152, 93, 0.95);
}

.home-kicker__line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

html[dir="rtl"] .home-kicker__line {
  background: linear-gradient(-90deg, var(--gold), transparent);
}

.home-firm {
  margin: 0 0 0.85rem;
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(244, 242, 239, 0.72);
  max-width: 36ch;
}

.home-firm--hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2em;
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 26ch;
}

.home-firm__line {
  font-size: clamp(1.75rem, 4.8vw, 2.85rem);
  color: #fff;
  text-shadow: 0 2px 48px rgba(0, 0, 0, 0.45);
}

.home-firm__sub {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: rgba(244, 242, 239, 0.72);
  letter-spacing: 0.01em;
}

.home-statement {
  margin: 0 0 1.35rem;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid rgba(187, 152, 93, 0.55);
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(187, 152, 93, 0.88);
  line-height: 1.5;
}

.home-lead {
  margin: 0 0 1.35rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 300;
  line-height: 1.95;
  color: rgba(244, 242, 239, 0.68);
  max-width: 46ch;
}

.home-hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.home-hero-contact__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(244, 242, 239, 0.78);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(187, 152, 93, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}

.home-hero-contact__chip:hover {
  color: var(--gold-l);
  border-color: rgba(187, 152, 93, 0.5);
  background: rgba(187, 152, 93, 0.1);
  transform: translateY(-1px);
}

.home-hero-contact__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(187, 152, 93, 0.12);
  color: var(--gold-l);
}

.home-hero-contact__ico svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.home-hero-contact__text {
  line-height: 1.2;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.page-home .home-hero .btn-outline-light {
  color: rgba(244, 242, 239, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.page-home .home-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-l);
  color: #fff;
}

.home-hero__panel {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .home-hero__panel {
    position: sticky;
    top: calc(var(--header-h) + var(--topbar-h) + 1rem);
  }
}

.home-glass {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius-xl) + 6px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-glass__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-l);
  margin-bottom: 0.75rem;
}

.home-glass__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.home-glass__text {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(244, 242, 239, 0.65);
}

.home-metrics {
  display: grid;
  gap: 0.65rem;
}

.home-metrics--2 {
  grid-template-columns: repeat(2, 1fr);
}

.home-metric {
  text-align: center;
  padding: 1rem 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(187, 152, 93, 0.2);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.home-metric:hover {
  transform: translateY(-3px);
  border-color: rgba(187, 152, 93, 0.45);
}

.home-metric__val {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--gold-l);
  line-height: 1.2;
}

.home-metric__lbl {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(244, 242, 239, 0.6);
  line-height: 1.35;
}

.home-metric__val--cr {
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing: 0.02em;
}

.home-hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(187, 152, 93, 0.6));
  opacity: 0.7;
}

[dir="rtl"] .home-hero__scroll {
  transform: translateX(50%);
}

/* —— Proof strip —— */
.home-proof {
  padding-block: 1.75rem;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.home-proof__inner {
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.home-proof__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-2);
}

.home-proof__item strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.home-proof__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* —— Section head (shared) —— */
.home-sec {
  padding-block: var(--home-section);
}

.home-sec__head {
  width: min(var(--home-max), 94vw);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  padding-inline: var(--home-pad);
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-sec__head {
    grid-template-columns: auto 1fr;
    gap: 2rem 3rem;
    align-items: end;
  }
}

.home-sec__index {
  font-family: var(--font-ar-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(187, 152, 93, 0.25);
  font-variant-numeric: tabular-nums;
}

.home-sec__meta {
  max-width: 52rem;
}

.home-sec__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.home-sec__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.home-sec__desc {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.85;
  color: var(--text-2);
  max-width: 58ch;
}

/* —— Trust (official logos & registrations) —— */
.home-trust {
  position: relative;
  background: var(--surface);
  overflow: hidden;
}

.home-trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(187, 152, 93, 0.04) 50%, transparent 100%),
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(70, 72, 73, 0.04), transparent 70%);
  pointer-events: none;
}

.home-trust::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  pointer-events: none;
}

.home-trust__grid {
  position: relative;
  z-index: 1;
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .home-trust__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0.5rem;
    background: rgba(70, 72, 73, 0.04);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius-xl) + 8px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 24px 48px rgba(70, 72, 73, 0.06);
  }
}

.home-trust-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: calc(var(--radius-xl) + 4px);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    background 0.5s var(--ease);
}

@media (min-width: 900px) {
  .home-trust-card {
    border-radius: calc(var(--radius-xl) + 2px);
  }

  .home-trust-card + .home-trust-card {
    border-inline-start: 1px solid var(--border);
  }
}

.home-trust-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(187, 152, 93, 0.07) 0%, transparent 42%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.home-trust-card:hover {
  transform: translateY(-6px);
  z-index: 2;
  background: #fff;
  box-shadow: 0 20px 40px rgba(70, 72, 73, 0.1);
}

@media (min-width: 900px) {
  .home-trust-card:hover {
    box-shadow: 0 16px 36px rgba(70, 72, 73, 0.12);
  }
}

.home-trust-card:hover::after {
  opacity: 1;
}

@media (max-width: 899px) {
  .home-trust-card {
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(70, 72, 73, 0.05);
  }
}

.home-trust-card__num {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(70, 72, 73, 0.22);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease);
}

.home-trust-card:hover .home-trust-card__num {
  color: rgba(187, 152, 93, 0.55);
}

.home-trust-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100px;
  margin-bottom: 1.35rem;
}

.home-trust-card__logo {
  width: auto;
  max-width: min(148px, 78%);
  height: auto;
  max-height: 68px;
  object-fit: contain;
  object-position: center;
  padding: 1.1rem 1.35rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(70, 72, 73, 0.03));
  border: 1px solid rgba(70, 72, 73, 0.08);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 24px rgba(70, 72, 73, 0.06);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.home-trust-card:hover .home-trust-card__logo {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px rgba(70, 72, 73, 0.1);
}

.home-trust-card__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.home-trust-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.home-trust-card__meta {
  margin: 0;
  width: 100%;
}

.home-trust-card__meta div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-trust-card__meta dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  line-height: 1.5;
}

.home-trust-card__meta dd {
  margin: 0;
  padding: 0.65rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 700;
  color: var(--grey-700);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.25;
  border-top: 1px solid var(--border);
  position: relative;
}

.home-trust-card__meta dd::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.home-trust-card:hover .home-trust-card__meta dd::before {
  opacity: 0.85;
}

/* —— Philosophy —— */
.home-phil__layout {
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .home-phil__layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.home-quote {
  margin: 0;
  padding: 2rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 1.5rem;
}

.home-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-style: normal;
  color: var(--text-3);
}

.home-pillars {
  display: grid;
  gap: 1rem;
}

.home-pillar {
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s;
}

.home-pillar:hover {
  border-color: rgba(187, 152, 93, 0.4);
  transform: translateX(4px);
}

[dir="rtl"] .home-pillar:hover {
  transform: translateX(-4px);
}

.home-pillar strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.home-pillar span {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* —— Services bento —— */
.home-svc {
  background: var(--grey-900);
  color: #f0eeea;
}

[data-theme="dark"] .home-svc {
  background: #121314;
}

.home-svc .home-sec__title,
.home-svc .home-sec__desc {
  color: inherit;
}

.home-svc .home-sec__desc {
  opacity: 0.75;
}

.home-svc__bento {
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-svc__bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-svc__card--featured {
    grid-column: 1 / -1;
  }
}

.home-svc__bento--extended .home-svc__card:not(.home-svc__card--featured) {
  min-height: 188px;
}

@media (min-width: 900px) {
  .home-svc__bento--extended {
    gap: 1.1rem;
  }
}

.home-svc__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s;
}

.home-svc__card:hover {
  transform: translateY(-6px);
  background: rgba(187, 152, 93, 0.1);
  border-color: rgba(187, 152, 93, 0.35);
}

.home-svc__card--featured {
  min-height: 240px;
  background: linear-gradient(145deg, rgba(187, 152, 93, 0.15), rgba(255, 255, 255, 0.03));
}

.home-svc__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-l);
  margin-bottom: 0.75rem;
}

.home-svc__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.home-svc__card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  opacity: 0.72;
}

.home-svc__foot {
  width: min(var(--home-max), 94vw);
  margin: 2rem auto 0;
  padding-inline: var(--home-pad);
  text-align: center;
}

/* —— Method —— */
.home-method__steps {
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-method__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.home-step {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.home-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(187, 152, 93, 0.12);
  border-radius: 50%;
}

.home-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.home-step p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* —— Values —— */
.home-values__grid {
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .home-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-values__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-value {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: box-shadow 0.35s, border-color 0.35s;
}

.home-value:hover {
  border-color: rgba(187, 152, 93, 0.35);
  box-shadow: var(--shadow-sm);
}

.home-value h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.home-value p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* —— Sectors —— */
.home-sectors {
  background: var(--bg-subtle);
}

.home-sectors__grid {
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .home-sectors__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-sector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.3s, transform 0.3s;
}

.home-sector:hover {
  border-color: rgba(187, 152, 93, 0.4);
  transform: translateY(-2px);
}

.home-sector__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* —— Impact —— */
.home-impact {
  position: relative;
  padding-block: var(--home-section);
  background: var(--grey-900);
  color: #f2f0eb;
  overflow: hidden;
}

.home-impact__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(187, 152, 93, 0.15), transparent 65%);
  pointer-events: none;
}

.home-impact .home-sec__head {
  position: relative;
  z-index: 1;
}

.home-impact .home-sec__title,
.home-impact .home-sec__desc {
  color: inherit;
}

.home-impact .home-sec__desc {
  opacity: 0.7;
}

.home-impact__grid {
  position: relative;
  z-index: 1;
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .home-impact__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-impact__item {
  text-align: center;
  padding: 1rem 0;
}

.home-impact__num {
  display: block;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-l);
  font-variant-numeric: tabular-nums;
}

.home-impact__lbl {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.45;
}

/* —— Explore links —— */
.home-explore__grid {
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .home-explore__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-explore__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.home-explore__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.home-explore__link:hover {
  transform: translateY(-4px);
  border-color: rgba(187, 152, 93, 0.4);
  box-shadow: var(--shadow-sm);
}

.home-explore__link strong {
  font-size: 0.95rem;
}

.home-explore__link span {
  font-size: 0.8rem;
  color: var(--text-3);
}

.home-explore__link--accent {
  background: linear-gradient(160deg, rgba(187, 152, 93, 0.12), var(--surface));
  border-color: rgba(187, 152, 93, 0.35);
}

/* —— Office bar —— */
.home-office {
  padding-block: 2.5rem;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.home-office__inner {
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding-inline: var(--home-pad);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-office__inner {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

.home-office__info {
  display: grid;
  gap: 0.65rem;
}

.home-office__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.home-office__row a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.home-office__row a:hover {
  text-decoration: underline;
}

/* —— Final CTA —— */
.home-cta {
  padding-block: var(--home-section);
  background: linear-gradient(135deg, rgba(187, 152, 93, 0.12), var(--bg-subtle));
}

.home-cta__box {
  width: min(var(--home-max), 94vw);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--home-pad);
  display: grid;
  gap: 2rem;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) + 8px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .home-cta__box {
    grid-template-columns: 1fr auto;
    text-align: start;
    gap: 2.5rem;
  }
}

.home-cta__box h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.home-cta__box p {
  margin: 0;
  color: var(--text-2);
  max-width: 42ch;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-cta__actions {
    justify-content: flex-end;
  }
}

/* —— Marquee —— */
.home-marquee {
  padding-block: 1.25rem;
  background: var(--gold);
  color: var(--grey-900);
  overflow: hidden;
}

.home-marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: homeMarquee 35s linear infinite;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@keyframes homeMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

[dir="rtl"] .home-marquee__track {
  animation-name: homeMarqueeRtl;
}

@keyframes homeMarqueeRtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Reveal on home — scroll pop-up */
.page-home .reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.94);
  filter: blur(6px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.page-home .reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.page-home .reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  filter: blur(5px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(0.09s * var(--i, 0));
  will-change: opacity, transform, filter;
}

.page-home .reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__mesh,
  .page-home .reveal,
  .page-home .reveal-stagger > * {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}