/*
 * United Group Website V8
 * Visual quality, typography balance, premium brand raster and compact social access.
 */

:root {
  --top-h: 38px;
  --fs-hero: clamp(2.8rem, 3.65vw, 3.45rem);
  --fs-landing: clamp(2.45rem, 3.15vw, 3.05rem);
  --fs-landing-long: clamp(2.15rem, 2.75vw, 2.7rem);
  --fs-page-title: clamp(1.95rem, 2.55vw, 2.7rem);
  --fs-functional-title: clamp(1.75rem, 2.25vw, 2.35rem);
  --fs-h2: clamp(1.75rem, 2.45vw, 2.6rem);
  --fs-h3: clamp(1.08rem, 1.35vw, 1.38rem);
}

h1,
h2,
h3,
h4 {
  text-wrap: pretty;
}

.section {
  padding: clamp(4rem, 6.5vw, 6.7rem) 0;
}

.section-head,
.ug-section-title {
  max-width: 700px;
  margin-bottom: 2.15rem;
}

.section-head p,
.ug-section-title p {
  font-size: 1rem;
}

.hero-grid {
  gap: clamp(2.5rem, 4vw, 3.6rem);
  padding-block: 4.15rem;
}

.hero-copy h1 {
  line-height: 1.28;
  margin-bottom: 1.2rem;
}

html[lang="en"] .hero-copy h1 {
  line-height: 1.08;
}

.landing-hero .hero-copy h1 {
  line-height: 1.3;
}

.page-hero {
  padding: 4.25rem 0 3.2rem;
}

.page-hero h1,
.profile-copy h1 {
  line-height: 1.3;
}

.prose h2 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.45;
}

.founder-statement blockquote {
  font-size: clamp(1.35rem, 2.25vw, 2.2rem);
}

/* Preserve the metallic depth of the official mark at high-density screens. */
.brand-plate {
  width: 54px;
  height: 54px;
}

.brand-plate img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.monument-core img {
  width: min(64%, 225px);
  height: auto;
}

html[data-theme="light"] img[src$="united-group-mark-premium.webp"] {
  content: url("../brand/united-group-mark-premium-light.webp");
}

/* Photo fidelity: lighter overlays and no extra softening filters. */
.intent-visual::after {
  background:
    linear-gradient(180deg, rgba(7, 8, 10, .01) 8%, rgba(7, 8, 10, .1) 58%, rgba(7, 8, 10, .78) 100%),
    linear-gradient(90deg, rgba(200, 169, 92, .045), transparent 45%);
}

.intent-visual img,
.profile-image img,
.author-box img {
  image-rendering: auto;
  filter: none;
}

.monument-signature {
  opacity: .68;
  filter: saturate(.78) contrast(1.05) brightness(.96);
}

.sector-card img[src$=".svg"],
.hero-aside img[src$=".svg"] {
  object-fit: contain;
  filter: none;
}

.sector-card img[src$=".svg"] {
  padding: 1.15rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(200, 169, 92, .09), transparent 55%),
    #090c10;
}

/* Top contact and official social accounts. */
.topbar {
  font-size: .74rem;
}

.topbar-group {
  gap: .95rem;
}

.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding-inline-start: .85rem;
  border-inline-start: 1px solid var(--white-line);
}

.topbar .top-social-link {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #979ca5;
  background: transparent;
  transition:
    color var(--dur-fast),
    border-color var(--dur-fast),
    background var(--dur-fast),
    transform var(--dur-fast);
}

.topbar .top-social-link:hover,
.topbar .top-social-link:focus-visible {
  color: var(--gold-2);
  border-color: var(--line);
  background: rgba(200, 169, 92, .07);
  transform: translateY(-1px);
}

.top-social-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

.top-social-link[data-network="instagram"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.mobile-social {
  display: none;
}

.landing-social {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding-inline: .55rem;
  border-inline: 1px solid var(--white-line);
}

.landing-brand-actions .top-social-link {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #949aa3;
}

.landing-brand-actions .top-social-link:hover,
.landing-brand-actions .top-social-link:focus-visible {
  color: var(--gold-2);
  border-color: var(--line);
  background: rgba(200, 169, 92, .07);
}

html[data-theme="light"] .topbar .top-social-link {
  color: #626a75;
}

html[data-theme="light"] .topbar .top-social-link:hover,
html[data-theme="light"] .topbar .top-social-link:focus-visible {
  color: var(--gold-2);
  background: rgba(169, 137, 62, .08);
}

@media (max-width: 1180px) and (min-width: 981px) {
  :root {
    --fs-hero: clamp(2.65rem, 4.1vw, 3.05rem);
  }

  .topbar-group {
    gap: .72rem;
  }

  .topbar-social {
    gap: .2rem;
    padding-inline-start: .62rem;
  }

  .landing-social {
    gap: .16rem;
    padding-inline: .35rem;
  }
}

@media (max-width: 980px) {
  :root {
    --fs-hero: clamp(2.35rem, 5vw, 2.75rem);
    --fs-landing: clamp(2.15rem, 4.7vw, 2.55rem);
    --fs-landing-long: clamp(1.95rem, 4.2vw, 2.35rem);
    --fs-page-title: clamp(1.9rem, 4.1vw, 2.35rem);
    --fs-functional-title: clamp(1.7rem, 3.8vw, 2.1rem);
    --fs-h2: clamp(1.65rem, 4vw, 2.15rem);
  }

  .mobile-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 1rem .75rem;
    border-bottom: 1px solid var(--white-line);
  }

  .mobile-social .top-social-link {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--white-line);
    border-radius: 50%;
    color: var(--muted);
    background: rgba(255, 255, 255, .018);
  }

  .mobile-social .top-social-link svg {
    width: 16px;
    height: 16px;
  }

  .landing-social {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --fs-hero: clamp(2rem, 8.2vw, 2.3rem);
    --fs-landing: clamp(1.95rem, 7.5vw, 2.25rem);
    --fs-landing-long: clamp(1.75rem, 6.7vw, 2.05rem);
    --fs-page-title: clamp(1.75rem, 6.7vw, 2.12rem);
    --fs-functional-title: clamp(1.6rem, 6.1vw, 1.95rem);
    --fs-h2: clamp(1.5rem, 6.2vw, 1.95rem);
  }

  .section {
    padding: 3.9rem 0;
  }

  .brand-plate {
    width: 46px;
    height: 46px;
  }

  .brand-plate img {
    width: 44px;
    height: 44px;
  }

  .hero-grid,
  .landing-hero .hero-grid {
    padding-block: 2.4rem 1.65rem;
  }

  .page-hero {
    padding: 3.1rem 0 2.45rem;
  }

  .monument-core img {
    width: min(58%, 154px);
  }
}

@media (max-width: 420px) {
  .hero:not(.landing-hero) .hero-copy h1 {
    font-size: 1.85rem;
    line-height: 1.24;
  }

  .landing-hero .hero-copy h1,
  .landing-hero.landing-hero-long .hero-copy h1 {
    max-width: none;
  }

  .monument-core img {
    width: min(55%, 128px);
  }
}
