/**
 * HAMTA-JP — Desktop home (Figma node 1:132)
 * Tokens: #003567 #002060 #373c47 #a8866d #fbfbfb #4b4b4b #d9d9d9
 */
:root {
  --hjp-blue: #003567;
  --hjp-blue-dark: #002060;
  --hjp-text: #373c47;
  --hjp-muted: #4b4b4b;
  --hjp-gold: #a8866d;
  --hjp-surface: #fbfbfb;
  --hjp-hero: #d9d9d9;
  --hjp-white: #fff;
  --hjp-shadow-card: 0 10px 30px -10px rgba(0, 53, 103, 0.25);
  --hjp-shadow-btn: 0 0 1px rgba(117, 131, 142, 0.04), 0 2px 4px rgba(52, 60, 68, 0.16);
  --hjp-max: 1440px;
  --hjp-gutter: 160px;
  --hjp-content: 1120px;
  --hjp-font-fa: "Vazirmatn", "Tahoma", sans-serif;
  --hjp-font-num: "Inter", "Segoe UI", sans-serif;
}

.hjp-site--figma {
  background: var(--hjp-white);
  color: var(--hjp-text);
  font-family: var(--hjp-font-fa);
  font-size: 16px;
  line-height: 28px;
}

.hjp-site--figma .hjp-main {
  padding: 0;
  max-width: none;
}

/* ── Header ── */
.hjp-f-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 58px;
  background: var(--hjp-surface);
}

.hjp-f-header__inner {
  max-width: var(--hjp-max);
  margin: 0 auto;
  height: 58px;
  padding: 4px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hjp-f-header__logo img {
  display: block;
  width: 54px;
  height: 50px;
  object-fit: contain;
}

.hjp-f-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
}

.hjp-f-header__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hjp-blue);
  font-size: 16px;
  line-height: 28px;
  text-decoration: none;
  white-space: nowrap;
}

.hjp-f-header__link:hover {
  opacity: 0.85;
}

.hjp-f-header__chevron {
  width: 24px;
  height: 24px;
}

.hjp-f-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 79px;
  justify-content: center;
}

.hjp-f-header__icon-btn {
  border: 0;
  background: transparent;
  padding: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hjp-f-header__icon-btn img {
  width: 32px;
  height: 32px;
}

/* ── Layout ── */
.hjp-f-wrap {
  width: min(var(--hjp-content), calc(100% - 2 * var(--hjp-gutter)));
  margin-inline: auto;
}

.hjp-f-section {
  padding-block: 40px;
}

.hjp-f-section--dark {
  background: var(--hjp-blue-dark);
  color: var(--hjp-white);
}

/* ── Hero ── */
.hjp-f-hero {
  max-width: var(--hjp-max);
  margin: 0 auto;
}

.hjp-f-hero__placeholder {
  height: 566px;
  background: var(--hjp-hero);
}

/* ── Section titles ── */
.hjp-f-sect-title {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.hjp-f-sect-title__text {
  margin: 0;
  font-family: var(--hjp-font-num);
  font-size: 32px;
  font-weight: 700;
  line-height: 44px;
  color: var(--hjp-blue);
  white-space: nowrap;
}

.hjp-f-sect-title--white .hjp-f-sect-title__text {
  color: var(--hjp-white);
}

.hjp-f-sect-title__line {
  flex: 0 0 auto;
  height: 1px;
  width: auto;
  max-width: 375px;
}

.hjp-f-sect-title--subs .hjp-f-sect-title__line {
  max-width: 234px;
}

.hjp-f-sect-title--factory .hjp-f-sect-title__line,
.hjp-f-sect-title--white .hjp-f-sect-title__line {
  max-width: 361px;
}

/* ── Why Hamta ── */
.hjp-f-why {
  padding-top: 72px;
}

.hjp-f-why__grid {
  display: grid;
  grid-template-columns: 347px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.hjp-f-handshake {
  position: relative;
  width: 347px;
  height: 347px;
}

.hjp-f-handshake__photo {
  position: absolute;
  inset: 2px 0 0 2px;
  width: 345px;
  height: 345px;
  object-fit: cover;
  border-radius: 30px;
}

.hjp-f-handshake__frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 317px;
  height: 317px;
  border: 2px solid var(--hjp-blue);
  border-radius: 30px;
  transform: rotate(-5.61deg);
  transform-origin: center;
  pointer-events: none;
}

.hjp-f-handshake__mask {
  position: absolute;
  left: 23px;
  top: 10px;
  width: 337px;
  height: 337px;
  object-fit: contain;
  pointer-events: none;
}

.hjp-f-why__heading {
  margin: 0 0 16px;
  font-family: var(--hjp-font-num);
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  color: var(--hjp-blue);
}

.hjp-f-why__body p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 28px;
  color: var(--hjp-text);
}

.hjp-f-why__body p:last-child {
  margin-bottom: 0;
}

/* KPI strip */
.hjp-f-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 134px;
  opacity: 0.88;
}

.hjp-f-kpi__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  min-width: 144px;
}

.hjp-f-kpi__value {
  margin: 0;
  font-family: var(--hjp-font-num);
  font-size: 40px;
  font-weight: 700;
  line-height: 44px;
  color: var(--hjp-blue);
}

.hjp-f-kpi__plus,
.hjp-f-kpi__prefix {
  color: var(--hjp-gold);
}

.hjp-f-kpi__label {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--hjp-blue);
}

/* ── Subsidiaries ── */
.hjp-f-subs {
  padding-top: 56px;
  padding-bottom: 56px;
}

.hjp-f-subs__logos {
  margin-bottom: 32px;
}

.hjp-f-subs__logos img {
  display: block;
  width: 100%;
  max-width: var(--hjp-content);
  height: auto;
}

.hjp-f-subs__desc {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--hjp-text);
  text-align: right;
}

/* ── Brands ── */
.hjp-f-brands {
  padding: 40px 0 48px;
}

.hjp-f-brands__intro {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 24px;
  color: var(--hjp-white);
  text-align: right;
}

.hjp-f-brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 262px);
  gap: 24px;
  justify-content: space-between;
}

.hjp-f-brand-card {
  background: var(--hjp-surface);
  border-radius: 30px;
  box-shadow: var(--hjp-shadow-card);
  padding: 32px 16px;
  min-height: 325px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hjp-f-brand-card__logo-wrap {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hjp-f-brand-card__logo {
  max-width: 199px;
  max-height: 44px;
  object-fit: contain;
}

.hjp-f-brand-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--hjp-text);
  text-align: right;
  flex: 1;
}

/* ── Network ── */
.hjp-f-network {
  padding: 48px 0;
}

.hjp-f-network__grid {
  display: grid;
  grid-template-columns: 462px 1fr;
  gap: 30px;
  align-items: start;
}

.hjp-f-network__map img {
  display: block;
  width: 462px;
  height: 421px;
  object-fit: cover;
}

.hjp-f-network__title {
  margin: 0 0 32px;
  font-family: var(--hjp-font-num);
  font-size: 32px;
  font-weight: 700;
  line-height: 44px;
  color: var(--hjp-blue);
}

.hjp-f-network__body p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 28px;
  color: var(--hjp-text);
}

/* ── Factory / Infographic ── */
.hjp-f-factory {
  padding: 48px 0 56px;
}

.hjp-f-factory__intro {
  margin-bottom: 32px;
}

.hjp-f-factory__intro p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 28px;
  color: var(--hjp-text);
}

.hjp-f-infographic__viewport {
  width: var(--hjp-content);
  height: 720px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.hjp-f-infographic__ref {
  position: absolute;
  left: -320px;
  top: -6460px;
  width: 2880px;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* ── News ── */
.hjp-f-news {
  padding: 48px 0 56px;
}

.hjp-f-news__intro {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 28px;
  color: var(--hjp-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hjp-f-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 336px);
  gap: 56px;
  justify-content: center;
}

.hjp-f-news-card {
  background: var(--hjp-surface);
  border-radius: 30px;
  box-shadow: var(--hjp-shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hjp-f-news-card__thumb {
  width: 100%;
  height: 241px;
  border-radius: 30px;
  overflow: hidden;
}

.hjp-f-news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hjp-f-news-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 32px;
  color: var(--hjp-blue);
  text-align: center;
}

.hjp-f-news-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--hjp-muted);
  text-align: right;
  width: 100%;
}

/* ── Buttons ── */
.hjp-f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.hjp-f-btn--primary {
  background: var(--hjp-blue);
  color: #f9fafb;
  box-shadow: var(--hjp-shadow-btn);
}

.hjp-f-btn--primary:hover {
  filter: brightness(1.05);
}

/* ── Footer ── */
.hjp-f-footer {
  background: var(--hjp-surface);
  padding: 32px 72px;
}

.hjp-f-footer__inner {
  max-width: var(--hjp-max);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hjp-f-footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 215px;
}

.hjp-f-footer__title {
  margin: 0;
  font-size: 20px;
  line-height: 32px;
  color: var(--hjp-blue);
  text-align: center;
}

.hjp-f-footer__line {
  width: 133px;
  height: 1px;
}

.hjp-f-home {
  max-width: var(--hjp-max);
  margin: 0 auto;
  overflow-x: hidden;
}

.hjp-f-footer__col a,
.hjp-f-footer__col p,
.hjp-f-footer__col span {
  margin: 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--hjp-blue);
  text-decoration: none;
  text-align: center;
}

.hjp-f-footer__col a:hover {
  opacity: 0.8;
}

.hjp-f-footer__links-grid {
  display: grid;
  gap: 12px 8px;
  text-align: center;
}

.hjp-f-footer__links-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  width: 198px;
}

.hjp-f-footer__brand-block {
  width: 332px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hjp-f-footer__brand-block img {
  width: 218px;
  height: 60px;
  object-fit: contain;
}

.hjp-f-footer__brand-text {
  margin: 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--hjp-blue);
  text-align: justify;
}

.hjp-f-footer__social {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.hjp-f-footer__social img {
  width: 32px;
  height: 32px;
}

.hjp-f-footer__bottom {
  max-width: var(--hjp-max);
  margin: 32px auto 0;
  text-align: center;
}

.hjp-f-footer__bottom p {
  margin: 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--hjp-blue);
}

@media (max-width: 1280px) {
  :root {
    --hjp-gutter: 40px;
  }

  .hjp-f-why__grid,
  .hjp-f-network__grid {
    grid-template-columns: 1fr;
  }

  .hjp-f-brands__grid,
  .hjp-f-news__grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .hjp-f-header__nav {
    display: none;
  }
}
