/* ============================================
   Hany Teleb Counsel Office — Enterprise Pages
   Custom styles for content-rich pages
   ============================================ */

:root {
  --ht-primary: #1a2452;
  --ht-primary-dark: #0e1838;
  --ht-accent: #c9a44d;
  --ht-accent-soft: #e6cb88;
  --ht-text: #2b2f3a;
  --ht-text-muted: #6b7280;
  --ht-bg-soft: #f6f7fb;
  --ht-bg-line: #e5e7ef;
  --ht-success: #1f8a5a;
  --ht-shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --ht-shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --ht-shadow-lg: 0 16px 48px rgba(15, 23, 42, .12);
  --ht-radius: 14px;
  --ht-radius-sm: 8px;
}

.ht-page { color: var(--ht-text); font-size: 16px; line-height: 1.75; }
.ht-page * { box-sizing: border-box; }
.ht-page img { max-width: 100%; height: auto; }
.ht-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.ht-hero {
  position: relative;
  padding: 96px 0 80px;
  background: linear-gradient(135deg, var(--ht-primary-dark) 0%, var(--ht-primary) 60%, #2b3a82 100%);
  color: #fff;
  overflow: hidden;
}
.ht-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(201,164,77,.18), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,.06), transparent 40%);
  pointer-events: none;
}
.ht-hero__inner { position: relative; z-index: 1; max-width: 860px; }
.ht-eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ht-accent); font-weight: 600; margin-bottom: 16px;
  border-inline-start: 3px solid var(--ht-accent); padding-inline-start: 12px;
}
.ht-hero__title {
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; font-weight: 800;
  color: #fff; margin: 0 0 20px;
}
.ht-hero__lede {
  font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.85);
  margin: 0; max-width: 700px;
}
.ht-hero__meta {
  display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15);
}
.ht-hero__meta-item .num {
  display: block; font-size: 32px; font-weight: 800; color: var(--ht-accent); line-height: 1;
}
.ht-hero__meta-item .lbl { display: block; font-size: 13px; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ---------- Section base ---------- */
.ht-section { padding: 80px 0; }
.ht-section--soft { background: var(--ht-bg-soft); }
.ht-section--dark { background: var(--ht-primary-dark); color: #fff; }
.ht-section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.ht-section__eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ht-accent); font-weight: 700; margin-bottom: 12px;
}
.ht-section__title {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--ht-primary);
  margin: 0 0 16px; line-height: 1.2;
}
.ht-section--dark .ht-section__title { color: #fff; }
.ht-section__lede {
  font-size: 17px; color: var(--ht-text-muted); margin: 0;
}
.ht-section--dark .ht-section__lede { color: rgba(255,255,255,.8); }

/* ---------- Team grid ---------- */
.ht-team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.ht-team-card {
  background: #fff; border-radius: var(--ht-radius); padding: 32px 28px;
  box-shadow: var(--ht-shadow-sm); border: 1px solid var(--ht-bg-line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.ht-team-card:hover { transform: translateY(-4px); box-shadow: var(--ht-shadow-md); border-color: var(--ht-accent-soft); }
.ht-team-card__avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ht-primary) 0%, var(--ht-primary-dark) 100%);
  color: var(--ht-accent); font-weight: 800; font-size: 28px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  border: 3px solid var(--ht-accent-soft);
}
.ht-team-card__name {
  font-size: 22px; font-weight: 800; color: var(--ht-primary); margin: 0 0 6px;
}
.ht-team-card__role {
  font-size: 14px; color: var(--ht-accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; margin: 0 0 18px;
}
.ht-team-card__exp {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ht-bg-soft); padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ht-primary); margin-bottom: 18px; align-self: flex-start;
}
.ht-team-card__quals { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ht-bg-line); padding-top: 16px; }
.ht-team-card__quals li {
  position: relative; padding-inline-start: 22px; font-size: 14px; color: var(--ht-text);
  margin-bottom: 8px; line-height: 1.55;
}
.ht-team-card__quals li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ht-accent); opacity: .85;
}
.ht-team-card__quals-title {
  font-size: 12px; font-weight: 700; color: var(--ht-text-muted);
  text-transform: uppercase; letter-spacing: 2px; margin: 18px 0 10px;
}

/* ---------- Service categories ---------- */
.ht-service-cat { margin-bottom: 64px; }
.ht-service-cat:last-child { margin-bottom: 0; }
.ht-service-cat__head {
  display: flex; align-items: center; gap: 20px; margin-bottom: 32px;
  padding-bottom: 20px; border-bottom: 2px solid var(--ht-bg-line);
}
.ht-service-cat__num {
  flex: none; width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--ht-primary) 0%, var(--ht-primary-dark) 100%);
  color: var(--ht-accent); font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ht-service-cat__title {
  font-size: 26px; font-weight: 800; color: var(--ht-primary); margin: 0;
}
.ht-service-cat__sub {
  font-size: 14px; color: var(--ht-text-muted); margin: 4px 0 0;
}
.ht-service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.ht-service-card {
  background: #fff; border-radius: var(--ht-radius-sm); padding: 24px;
  border: 1px solid var(--ht-bg-line); border-inline-start: 4px solid var(--ht-accent);
  transition: box-shadow .2s ease, transform .2s ease;
}
.ht-service-card:hover { box-shadow: var(--ht-shadow-sm); transform: translateY(-2px); }
.ht-service-card__title {
  font-size: 17px; font-weight: 700; color: var(--ht-primary); margin: 0 0 10px;
}
.ht-service-card__desc { font-size: 14px; color: var(--ht-text); margin: 0 0 14px; line-height: 1.6; }
a.ht-service-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
a.ht-service-card:hover { color: inherit; }
.ht-service-card__more {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--ht-accent);
  margin-top: auto; padding-top: 8px;
}

/* ---------- Methodology phases ---------- */
.ht-phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.ht-phase {
  background: #fff; border-radius: var(--ht-radius); padding: 32px 28px;
  border: 1px solid var(--ht-bg-line); box-shadow: var(--ht-shadow-sm); position: relative;
}
.ht-phase__num {
  position: absolute; top: -18px; inset-inline-start: 28px;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ht-accent); color: var(--ht-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; box-shadow: var(--ht-shadow-sm);
}
.ht-phase__title { font-size: 20px; font-weight: 800; color: var(--ht-primary); margin: 12px 0 14px; }
.ht-phase ul { margin: 0; padding-inline-start: 18px; }
.ht-phase li { font-size: 14px; color: var(--ht-text); line-height: 1.6; margin-bottom: 8px; }

/* ---------- Comparison table ---------- */
.ht-compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: var(--ht-radius); overflow: hidden;
  box-shadow: var(--ht-shadow-sm); border: 1px solid var(--ht-bg-line);
}
.ht-compare th, .ht-compare td {
  padding: 18px 22px; text-align: start; vertical-align: top;
  border-bottom: 1px solid var(--ht-bg-line);
}
.ht-compare thead th {
  background: var(--ht-primary); color: #fff; font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 1px;
}
.ht-compare thead th:first-child { background: var(--ht-primary-dark); }
.ht-compare tbody tr:last-child td { border-bottom: none; }
.ht-compare td:first-child {
  font-weight: 700; color: var(--ht-primary); background: var(--ht-bg-soft); width: 24%;
}
.ht-compare td.ht-good { background: rgba(31,138,90,.06); }
.ht-compare td.ht-bad { color: var(--ht-text-muted); }

/* ---------- Differentiators ---------- */
.ht-diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ht-diff {
  background: #fff; padding: 28px; border-radius: var(--ht-radius);
  border: 1px solid var(--ht-bg-line); position: relative;
}
.ht-diff__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--ht-accent) 0%, var(--ht-accent-soft) 100%);
  color: var(--ht-primary-dark); font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ht-diff__title { font-size: 18px; font-weight: 700; color: var(--ht-primary); margin: 0 0 8px; }
.ht-diff__desc { font-size: 14px; color: var(--ht-text); margin: 0; line-height: 1.6; }

/* ---------- Clients ---------- */
.ht-client-sector {
  margin-bottom: 40px; background: #fff; border-radius: var(--ht-radius);
  padding: 28px 32px; box-shadow: var(--ht-shadow-sm); border: 1px solid var(--ht-bg-line);
}
.ht-client-sector__title {
  font-size: 18px; font-weight: 800; color: var(--ht-primary); margin: 0 0 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ht-accent-soft);
}
.ht-client-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 24px;
  margin: 0; padding: 0; list-style: none;
}
.ht-client-list li {
  position: relative; padding-inline-start: 18px; font-size: 14px; color: var(--ht-text);
  line-height: 1.55; padding-block: 4px;
}
.ht-client-list li::before {
  content: "›"; position: absolute; inset-inline-start: 0; top: 4px;
  color: var(--ht-accent); font-weight: 700;
}

/* ---------- Rich text in content blocks ---------- */
.ht-prose { font-size: 16px; line-height: 1.85; color: var(--ht-text); max-width: 880px; margin: 0 auto; }
.ht-prose p { margin: 0 0 18px; text-align: justify; }
.ht-prose h2 {
  font-size: 28px; font-weight: 800; color: var(--ht-primary); margin: 40px 0 16px;
}
.ht-prose h3 {
  font-size: 22px; font-weight: 700; color: var(--ht-primary); margin: 32px 0 12px;
}
.ht-prose ul, .ht-prose ol { padding-inline-start: 22px; margin: 0 0 20px; }
.ht-prose li { margin-bottom: 8px; }
.ht-prose strong { color: var(--ht-primary); }
.ht-prose .ht-callout {
  background: var(--ht-bg-soft); border-inline-start: 4px solid var(--ht-accent);
  padding: 20px 24px; border-radius: var(--ht-radius-sm); margin: 24px 0;
}

/* ---------- CTA block ---------- */
.ht-cta {
  background: linear-gradient(135deg, var(--ht-primary-dark) 0%, var(--ht-primary) 100%);
  color: #fff; padding: 64px 0; text-align: center;
}
.ht-cta__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #fff; margin: 0 0 12px; }
.ht-cta__desc { font-size: 17px; color: rgba(255,255,255,.85); margin: 0 auto 32px; max-width: 640px; }
.ht-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 999px;
  background: var(--ht-accent); color: var(--ht-primary-dark);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ht-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,164,77,.4); color: var(--ht-primary-dark); }
.ht-btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.ht-btn--outline:hover { background: #fff; color: var(--ht-primary-dark); border-color: #fff; }
.ht-cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact block ---------- */
.ht-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.ht-contact-card {
  background: #fff; padding: 28px; border-radius: var(--ht-radius);
  border: 1px solid var(--ht-bg-line); text-align: center;
}
.ht-contact-card__icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--ht-bg-soft); color: var(--ht-accent);
  font-size: 24px; display: flex; align-items: center; justify-content: center;
}
.ht-contact-card__label {
  font-size: 12px; color: var(--ht-text-muted); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 6px;
}
.ht-contact-card__value { font-size: 16px; font-weight: 700; color: var(--ht-primary); margin: 0; }
.ht-contact-card a { color: var(--ht-primary); text-decoration: none; }

/* ---------- RTL adjustments ---------- */
.rtl .ht-page { font-family: "Cairo", "Tajawal", "Segoe UI", system-ui, sans-serif; }
.rtl .ht-hero__title, .rtl .ht-section__title, .rtl .ht-team-card__name,
.rtl .ht-service-cat__title, .rtl .ht-phase__title, .rtl .ht-diff__title,
.rtl .ht-cta__title, .rtl .ht-client-sector__title { font-weight: 800; }
.rtl .ht-prose p { text-align: justify; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .ht-hero { padding: 72px 0 56px; }
  .ht-section { padding: 56px 0; }
  .ht-team-grid, .ht-service-grid { grid-template-columns: 1fr; }
  .ht-service-cat__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ht-compare { font-size: 13px; }
  .ht-compare th, .ht-compare td { padding: 12px 14px; }
}
