/*
 * Production visual QA pass
 * Normalizes scale, spacing and responsive behavior across the public site.
 * Loaded last by the shared navbar so it can safely correct page-family styles.
 */

:root {
  --pa-container: 1240px;
  --pa-gutter: clamp(1.1rem, 3.5vw, 3rem);
  --pa-section-space: clamp(4.75rem, 8vw, 7.25rem);
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  line-height: 1.6;
}

.pa-shell {
  width: min(calc(100% - (var(--pa-gutter) * 2)), var(--pa-container));
}

.pa-kicker {
  margin-bottom: 1.05rem;
  font-size: .74rem;
  letter-spacing: .14em;
}

.pa-heading {
  font-size: clamp(2.45rem, 4.35vw, 4.75rem);
  line-height: 1;
}

.pa-lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.pa-button {
  min-height: 52px;
  padding: .9rem 1.4rem;
  font-size: .9rem;
}

/* Navigation */
.pa-navbar {
  --pa-navbar-height: 78px;
}

.pa-navbar__inner {
  gap: 1.5rem;
}

.pa-navbar__logo-frame {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.pa-navbar__brand {
  gap: .7rem;
}

.pa-navbar__brand-copy strong {
  font-size: 1.18rem;
}

.pa-navbar__brand-copy small {
  font-size: .57rem;
}

.pa-navbar__desktop {
  gap: .15rem;
}

.pa-navbar__link {
  padding: .68rem .8rem;
  font-size: .88rem;
}

.pa-navbar__cta {
  min-height: 44px;
  padding: .72rem 1.05rem;
  font-size: .84rem;
}

/* Homepage hero */
.home-hero {
  min-height: max(720px, 88svh);
}

.home-hero__content {
  padding-top: calc(var(--pa-navbar-height) + clamp(5rem, 8vw, 8rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-hero__eyebrow {
  margin-bottom: 1.1rem;
  font-size: .74rem;
}

.home-hero h1 {
  max-width: 940px;
  font-size: clamp(4rem, 7.1vw, 7rem);
  line-height: .92;
}

.home-hero__bottom {
  margin-top: clamp(2.3rem, 4.5vw, 3.8rem);
  grid-template-columns: minmax(0, 590px) auto;
}

.home-hero__bottom p {
  max-width: 590px;
  font-size: clamp(1.04rem, 1.35vw, 1.16rem);
  line-height: 1.72;
}

.home-hero__actions {
  align-items: center;
}

/* Home introduction */
.home-intro__grid {
  grid-template-columns: minmax(155px, .42fr) minmax(0, 1.58fr);
  gap: clamp(2.25rem, 6vw, 6.5rem);
}

.home-intro__statement {
  max-width: 820px;
}

.home-intro__statement h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: .99;
}

.home-intro__statement p {
  max-width: 720px;
  margin-bottom: 1.6rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.home-principles {
  margin-top: clamp(3rem, 6vw, 5.25rem);
}

.home-principle {
  min-height: 190px;
  padding-top: 1.8rem;
  padding-bottom: 1.5rem;
}

.home-principle h3 {
  font-size: 1.58rem;
}

.home-principle p {
  font-size: .94rem;
  line-height: 1.7;
}

/* Trusted organisations */
.home-trusted {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

.home-trusted__header h2 {
  max-width: 780px;
  font-size: clamp(2.55rem, 4.4vw, 4.3rem);
  line-height: 1;
}

.home-trusted__card {
  width: clamp(250px, 22vw, 300px);
  min-height: 195px;
  padding: 1.25rem;
  border-radius: 16px;
}

.home-trusted__logo {
  min-height: 92px;
}

.home-trusted__logo img {
  max-width: 160px;
  max-height: 76px;
  opacity: .9;
}

.home-trusted__card strong {
  font-size: 1.12rem;
  line-height: 1.22;
}

/* Homepage services — keep one horizontal rail and improve image visibility */
.home-services {
  padding-block: clamp(5.25rem, 8vw, 7rem);
}

.home-services__intro {
  margin-bottom: clamp(2.4rem, 4vw, 3.4rem);
}

.home-services .pa-heading {
  max-width: 650px;
}

.home-services__intro-copy {
  max-width: 520px;
}

.home-services__intro-copy p {
  font-size: .98rem;
  line-height: 1.72;
}

.home-services__grid {
  gap: 1rem;
  padding-bottom: 1.1rem;
}

.home-service-card,
.home-service-card--featured,
.home-service-card--wide {
  flex: 0 0 clamp(300px, 31vw, 410px);
  min-height: 430px;
  border-radius: 18px;
}

.home-service-card img {
  filter: brightness(.92) saturate(.95) contrast(1.02);
}

.home-service-card__overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,.02) 18%, rgba(0,0,0,.12) 46%, rgba(0,0,0,.82) 100%),
    linear-gradient(90deg, rgba(0,0,0,.1), transparent 62%);
}

.home-service-card__content {
  min-height: 190px;
  padding: 1.45rem;
}

.home-service-card h3 {
  font-size: clamp(1.9rem, 2.5vw, 2.75rem);
  line-height: 1;
}

.home-service-card__content p,
.home-service-card__link {
  font-size: .72rem;
}

/* Why Proma */
.home-feature {
  padding-block: clamp(5.25rem, 8vw, 7rem);
}

.home-feature__grid {
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: clamp(3rem, 6vw, 6rem);
}

.home-feature__image {
  min-height: 540px;
  border: 1px solid rgba(255,255,255,.08);
}

.home-feature__image img {
  height: 540px;
  filter: brightness(.92) saturate(.9);
}

.home-feature__image::after {
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.24));
}

.home-feature__content > p:not(.pa-kicker) {
  font-size: 1rem;
  line-height: 1.75;
}

.home-feature__points li {
  padding-block: 1rem;
}

/* Audience */
.home-sectors__header {
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.home-sector {
  min-height: 235px;
  padding: 1.65rem;
}

.home-sector h3 {
  font-size: 1.45rem;
}

.home-sector p {
  font-size: .92rem;
  line-height: 1.68;
}

/* Articles */
.home-insights__header {
  margin-bottom: 2rem;
}

.home-insights__grid {
  gap: 1.25rem;
}

.home-insight-card,
.home-insight-card--secondary {
  min-height: 430px;
}

.home-insight-card__content {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.home-insight-card h3 {
  font-size: clamp(2rem, 3.4vw, 3.35rem);
}

/* Inner page heroes */
.content-hero,
.services-hero,
.insights-hero {
  min-height: max(560px, 64svh);
}

.content-hero__inner,
.services-hero__inner {
  padding-top: calc(var(--pa-navbar-height) + 4.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.content-hero h1,
.services-hero h1,
.insights-hero h1 {
  max-width: 920px;
  font-size: clamp(3.4rem, 6.5vw, 6.2rem);
  line-height: .96;
}

.content-hero p,
.services-hero__bottom p,
.insights-hero p {
  font-size: 1.05rem;
  line-height: 1.72;
}

/* About/contact shared content */
.content-grid,
.services-overview__grid {
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.content-prose h2,
.services-overview__copy h2,
.services-directory__intro h2,
.services-process__header h2,
.services-advisory__copy h2 {
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  line-height: 1.02;
}

.content-prose p,
.services-overview__copy p,
.services-directory__intro p,
.services-process__header p,
.services-advisory__copy p {
  font-size: 1rem;
  line-height: 1.78;
}

.statement-card {
  min-height: 300px;
}

.value-tile,
.process-card {
  min-height: 220px;
}

/* Services page */
.service-panel {
  min-height: 330px;
}

.service-panel__media,
.service-panel__media img {
  min-height: 330px;
}

.service-panel__content {
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
}

.service-panel h3 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.services-process__item {
  min-height: 220px;
}

.services-advisory__image,
.services-advisory__image img {
  min-height: 460px;
  height: 460px;
}

/* Footer */
.pa-footer__cta {
  padding-block: clamp(3.75rem, 6vw, 5.75rem);
}

.pa-footer__cta h2 {
  max-width: 720px;
  font-size: clamp(2.6rem, 4.4vw, 4.5rem);
}

.pa-footer__main {
  gap: clamp(2rem, 3vw, 3.5rem);
  padding: 3.25rem 0 2.5rem;
}

.pa-footer__brand p,
.pa-footer__column a,
.pa-footer__contact a,
.pa-footer__contact span {
  font-size: .92rem;
}

.pa-footer__column h3 {
  font-size: .74rem;
}

@media (max-width: 1100px) {
  .home-hero {
    min-height: 820px;
  }

  .home-hero__bottom {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-hero__actions {
    justify-content: flex-start;
  }

  .home-feature__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  :root {
    --pa-section-space: clamp(4rem, 8vw, 5.75rem);
  }

  .pa-navbar {
    --pa-navbar-height: 72px;
  }

  .home-intro__grid,
  .home-feature__grid,
  .home-sectors__header,
  .services-overview__grid,
  .services-directory__intro,
  .services-process__header,
  .services-advisory__grid {
    grid-template-columns: 1fr;
  }

  .home-intro__grid {
    gap: 1.5rem;
  }

  .home-principles {
    grid-template-columns: 1fr;
  }

  .home-principle,
  .home-principle + .home-principle {
    min-height: 0;
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--pa-stone-200);
  }

  .home-feature__image,
  .home-feature__image img {
    min-height: 420px;
    height: 420px;
  }

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

  .home-sector {
    min-height: 210px;
  }

  .service-panel,
  .service-panel:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-panel:nth-child(even) .service-panel__media {
    order: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --pa-gutter: 1.1rem;
    --pa-section-space: 4.25rem;
  }

  .pa-kicker {
    font-size: .68rem;
  }

  .pa-heading {
    font-size: clamp(2.2rem, 10vw, 3.15rem);
  }

  .pa-button {
    min-height: 48px;
    padding-inline: 1.15rem;
  }

  .home-hero {
    min-height: 720px;
  }

  .home-hero__content {
    padding-top: calc(var(--pa-navbar-height) + 4.5rem);
    padding-bottom: 2.5rem;
  }

  .home-hero h1 {
    font-size: clamp(3.15rem, 14vw, 4.6rem);
    line-height: .92;
  }

  .home-hero__bottom {
    margin-top: 2rem;
    gap: 1.5rem;
  }

  .home-hero__actions {
    width: 100%;
  }

  .home-hero__actions .pa-button {
    flex: 1 1 100%;
  }

  .home-intro__statement h2 {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .home-trusted {
    padding-block: 4rem;
  }

  .home-trusted__header h2 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .home-service-card,
  .home-service-card--featured,
  .home-service-card--wide {
    flex-basis: min(84vw, 325px);
    min-height: 405px;
  }

  .home-service-card h3 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .home-feature__image,
  .home-feature__image img {
    min-height: 330px;
    height: 330px;
  }

  .home-sectors__grid,
  .home-insights__grid,
  .values-grid,
  .process-grid,
  .form-grid,
  .service-choice__options {
    grid-template-columns: 1fr;
  }

  .home-sector {
    min-height: auto;
  }

  .home-insight-card,
  .home-insight-card--secondary {
    min-height: 360px;
  }

  .content-hero,
  .services-hero,
  .insights-hero {
    min-height: 520px;
  }

  .content-hero h1,
  .services-hero h1,
  .insights-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .split-media__image,
  .split-media__image img {
    min-height: 360px;
    height: 360px;
  }

  .statement-card {
    min-height: 260px;
  }

  .service-panel,
  .service-panel__media,
  .service-panel__media img {
    min-height: 290px;
  }

  .services-advisory__image,
  .services-advisory__image img {
    min-height: 340px;
    height: 340px;
  }

  .pa-footer__cta-grid,
  .pa-footer__main {
    grid-template-columns: 1fr;
  }

  .pa-footer__cta h2 {
    font-size: clamp(2.4rem, 10vw, 3.25rem);
  }
}

@media (max-width: 520px) {
  .pa-navbar__brand-copy small {
    display: none;
  }

  .pa-navbar__brand-copy strong {
    font-size: 1rem;
  }

  .pa-navbar__logo-frame {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .home-hero {
    min-height: 680px;
  }

  .home-hero h1 {
    font-size: clamp(2.9rem, 15vw, 4rem);
  }

  .home-trusted__card {
    width: min(82vw, 280px);
  }
}
