/*
home.css — styles used ONLY on the "Home 2" template.
Enqueue this in addition to style.css, only when the Home 2 template
is being rendered (see functions.php enqueue snippet).
*/

html[lang="ar"] .hero h1 em {
  font-style: normal;
  color: var(--brass-deep); /* keep the emphasis via color instead of italic */
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  font-weight: 500;
  max-width: 12.5ch;
}
.hero h1:lang(ar) {
  font-size: clamp(40px, 5.4vw, 42px);
  line-height: 1.2;
  font-weight: 600;
  max-width: 20.5ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass-deep);
  font-weight: 400;
}

.hero p.lede {
  margin-top: 26px;
  font-size: 18px;
  color: var(--charcoal-soft);
  max-width: 52ch;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--stone-2);
  max-width: 52ch;
}

.proof-num {
  font-family: var(--font-mono);
  font-size: 34px;
  color: var(--ink);
  font-weight: 500;
}

.proof-text {
  font-size: 13.5px;
  color: var(--charcoal-soft);
  max-width: 28ch;
  line-height: 1.5;
}

/* SEAL */
.seal-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
}

.seal {
  position: relative;
  width: 340px;
  height: 340px;
}

.seal svg {
  width: 100%;
  height: 100%;
}

.seal-ring-text {
  animation: spin 38s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.seal-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.seal-center .num {
  font-family: var(--font-heading);
  font-size: 46px;
  color: var(--ink);
  font-weight: 500;
}

.seal-center .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: 2px;
}

.seal-photo {
  position: absolute;
  bottom: -18px;
  right: -6px;
  width: 158px;
  height: 158px;
  background-color: #ede4d2;
  border-radius: 50%;
  border: 5px solid var(--parchment);
  box-shadow: 0 18px 40px -14px rgba(var(--shadow-ink), 0.45);
  overflow: hidden;
}

[dir="rtl"] .seal-photo {
  right: auto;
  left: -6px;
}

.seal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;object-position: top;
}

/* ---------- AUTHORITIES ---------- */
.authorities {
  padding: 56px 0;
  border-top: 1px solid var(--stone-2);
  border-bottom: 1px solid var(--stone-2);
  background: var(--parchment-2);
}

.auth-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.auth-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 15px;
  border-left: 1px solid var(--stone);
}

[dir="rtl"] .auth-item {
  border-left: none;
  border-right: 1px solid var(--stone);
}

.auth-item:first-child {
  border-left: none;
  padding-left: 0;
}

[dir="rtl"] .auth-item:first-child {
  border-right: none;
  padding-left: 28px;
  padding-right: 0;
}

.auth-badge {
  padding: 3px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  flex: none;
  border: 1.5px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
}
.auth-badge img {
  height: 100%;
}
.auth-item h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-body);
}

.auth-item p {
  font-size: 12.5px;
  color: var(--charcoal-soft);
  margin-top: 2px;
  line-height: 1.4;
}

/* ---------- STATS ---------- */
.stats {
  padding: 70px 0;
  background: var(--ink);
  color: var(--parchment);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 46px);
  color: var(--brass-light);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  text-align: center;
  font-size: 13.5px;
  color: rgba(246, 241, 231, 0.65);
  margin-top: 8px;
  max-width: 20ch;
}

/* ---------- SERVICES LEDGER ---------- */
.ledger {
  border-top: 1px solid var(--stone);
}

.ledger-row {
  display: grid;
  grid-template-columns: 90px 1fr 220px;
  gap: 32px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--stone);
  transition: background 0.3s var(--ease);
}

.ledger-row:hover {
  background: rgba(169, 130, 74, 0.05);
}

.ledger-index {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--brass-deep);
  padding-top: 6px;
}

.ledger-main h3 {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 8px;
}

.ledger-main p {
  color: var(--charcoal-soft);
  max-width: 52ch;
  font-size: 15px;
}

.ledger-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 4px;
}

.ledger-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 16px;
  border: 1px solid var(--stone);
  border-radius: 2px;
  transition: 0.25s var(--ease);
}

.ledger-row:hover .ledger-explore {
  border-color: var(--brass);
  color: var(--brass-deep);
  transform: translateX(2px);
}

[dir="rtl"] .ledger-row:hover .ledger-explore {
  transform: translateX(-2px);
}

.ledger-explore img {
  width: 13px;
  height: 13px;
}

[dir="rtl"] .ledger-explore img {
  transform: scaleX(-1);
}

/* ---------- STORY ---------- */
.story {
  padding: 100px 0;
}

.story-frame {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 20/9;
  box-shadow: 0 30px 60px -24px rgba(var(--shadow-ink), 0.4);
}

.story-frame img,
.story-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 35, 63, 0.05) 0%,
    rgba(16, 35, 63, 0.55) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
}

.play-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.play-btn:hover {
  transform: scale(1.08);
  background: #fff;
}

.play-btn img {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.story-overlay h3 {
  color: var(--parchment);
  font-size: 26px;
  font-weight: 500;
}

.story-overlay p {
  color: rgba(246, 241, 231, 0.75);
  font-size: 14.5px;
  margin-top: 6px;
}

/* ---------- WHY CHOOSE ---------- */
.why {
  padding: 110px 0;
  background: var(--parchment-2);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.why-photo {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 3/5;
}

.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.why-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--parchment);
  padding: 16px 20px;
  border-radius: var(--radius-s);
  box-shadow: 0 20px 40px -18px rgba(var(--shadow-ink), 0.5);
}

[dir="rtl"] .why-tag {
  left: auto;
  right: 24px;
}

.why-tag .num {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--ink);
}

.why-tag .lbl {
  font-size: 12px;
  color: var(--charcoal-soft);
  margin-top: 2px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-item {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--stone);
}

.why-item:first-child {
  padding-top: 0;
}

.why-tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.why-tick img {
  width: 12px;
  height: 12px;
}

.why-item h4 {
  font-size: 17.5px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-body);
}

.why-item p {
  font-size: 14.5px;
  color: var(--charcoal-soft);
  margin-top: 6px;
  max-width: 48ch;
}

/* ---------- TESTIMONIALS MARQUEE ---------- */
.testimonials {
  padding: 110px 0 120px;
  overflow: hidden;
  direction: ltr; /* keep scroll order/direction fixed regardless of page language */
}

[dir="rtl"] .quote-card {
  direction: rtl;
  text-align: right;
}

.marquee-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  width: max-content;
}

.marquee-row.left {
  animation: scrollLeft 62s linear infinite;
}

.marquee-row.right {
  animation: scrollRight 68s linear infinite;
}

.testimonials:hover .marquee-row {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.quote-card {
  flex: none;
  width: 340px;
  background: var(--parchment);
  border: 1px solid var(--stone-2);
  border-radius: var(--radius-m);
  padding: 26px;
  box-shadow: 0 14px 30px -18px rgba(var(--shadow-ink), 0.25);
}

.stars {
  color: var(--brass);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.quote-card p {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.55;
}

.quote-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.quote-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  flex: none;
}

.quote-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.quote-role {
  font-size: 12px;
  color: var(--charcoal-soft);
}
.seal svg {
  direction: ltr;
}
/* ---------- HOME-ONLY RESPONSIVE ---------- */
@media (max-width: 980px) {
  .testimonials .eyebrow {
    text-align: center;
    display: block;
    margin: auto;
  }
  [dir="rtl"] .auth-item {
    border: 0;
  }
  .hero h1 {
    max-width: 22.5ch;
  }
  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .seal-wrap {
    height: 280px;
    margin-top: 20px;
  }

  .auth-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .auth-item {
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .ledger-row {
    grid-template-columns: 50px 1fr;
  }

  .ledger-action {
    display: none;
  }
  .story-frame {
    height: 500px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .story-frame {
    height: 300px;
    width: 100%;
  }
  .cta-section {
    padding: 70px 0;
  }

  .testimonials .section-head {
    text-align: center;
  }
  .hero {
    padding: 56px 0 40px;
  }
}
@media (max-width: 480px) {
  .hero h1:lang(ar) {
    font-size: clamp(35px, 5.4vw, 68px);
    line-height: 1.02;
    font-weight: 500;
    max-width: 15.5ch;
  }

  div.auth-item:nth-child(3) {
    border-right: 0px !important;
  }
  .auth-item h4,
  .auth-item p {
    text-align: center;
  }
  .auth-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}
