/* Trinity SEO \2014 layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--space-xl);
}
.section--tight {
  padding-block: var(--space-lg);
}
.section--deep {
  background: var(--deep);
  color: var(--surface-alt);
}
.section--deep h1,
.section--deep h2,
.section--deep h3,
.section--deep h4 {
  color: var(--surface-alt);
}
.section--alt {
  background: var(--surface-alt);
}

.section-header {
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
  margin-bottom: var(--space-lg);
  max-width: 42rem;
}
.section-header--wide {
  max-width: none;
}
@media (min-width: 900px) {
  .section-header--wide h2 {
    white-space: nowrap;
  }
  .section-header--wide h2 .heading-line,
  .cta-band h2 .heading-line,
  .cta-band h3 .heading-line {
    display: block;
    white-space: nowrap;
  }
  .section-header--wide h2:has(.heading-line) {
    white-space: normal;
  }
}
.section--deep .section-header {
  border-color: rgba(245, 243, 239, 0.15);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.lede {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-top: var(--space-sm);
}
.section--deep .lede {
  color: rgba(245, 243, 239, 0.72);
}

.prose {
  max-width: 68ch;
}
.prose > * + * {
  margin-top: var(--space-sm);
}
.prose h2 {
  margin-top: var(--space-lg);
}
.prose h3 {
  margin-top: var(--space-md);
}

.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 {
  grid-template-columns: 1fr;
}
.grid-3 {
  grid-template-columns: 1fr;
}
.grid-4 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .split--reverse > :first-child {
    order: 2;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.stack-md {
  gap: var(--space-md);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.hero {
  padding-block: calc(var(--header-h) + var(--space-lg)) var(--space-xl);
}
@media (max-width: 899px) {
  /* Sticky header is already in flow \2014 only need a small gap under it */
  .hero {
    padding-block: 1.25rem var(--space-lg);
  }
}
.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.hero__media--compact {
  max-width: 16rem;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .hero__media--compact {
    margin-inline: auto 0;
  }
}
.hero__media--compact img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Homepage: full-bleed Dubai skyline background */
.hero--skyline {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 52rem);
  color: var(--surface-alt);
  background-color: var(--deep);
  background-image:
    linear-gradient(
      105deg,
      rgba(12, 17, 22, 0.92) 0%,
      rgba(12, 17, 22, 0.78) 38%,
      rgba(12, 17, 22, 0.4) 68%,
      rgba(12, 17, 22, 0.5) 100%
    ),
    url('/assets/img/heroes/hero_background_trinity.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero--skyline::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(176, 141, 63, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 141, 63, 0.18) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
  background-position: center top;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    rgba(0, 0, 0, 0.7) 35%,
    rgba(0, 0, 0, 0.25) 55%,
    transparent 75%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    rgba(0, 0, 0, 0.7) 35%,
    rgba(0, 0, 0, 0.25) 55%,
    transparent 75%
  );
}
.hero--skyline .hero__copy {
  position: relative;
  z-index: 1;
  max-width: min(100%, 52rem);
}
.hero--skyline h1 {
  color: var(--surface-alt);
  /* Match lede + audit form width so the second line never outruns the CTA */
  max-width: 45rem;
}
.hero--skyline h1 .hero__line {
  display: block;
}
.hero--skyline h1 .hero__line--sub {
  font-size: clamp(1.2rem, 1rem + 0.85vw, 2.05rem);
  line-height: 1.2;
  margin-top: 0.2em;
  letter-spacing: -0.015em;
}
@media (min-width: 720px) {
  .hero--skyline h1 .hero__line:not(.hero__line--sub) {
    white-space: nowrap;
  }
}
.hero--skyline .lede {
  color: rgba(245, 243, 239, 0.82);
}
.hero--skyline .form--audit {
  max-width: 60ch;
}
.hero--skyline .hero-reassure {
  color: rgba(245, 243, 239, 0.72);
}
.hero--skyline .hero-reassure a {
  color: var(--surface-alt);
}
.hero--skyline .form-combo .btn--primary {
  background: var(--ink);
  color: var(--surface);
}
.hero--skyline .form-combo .btn--primary:hover {
  background: var(--deep);
  color: var(--surface);
}

.stat-strip {
  display: grid;
  gap: var(--space-md);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-md);
}
@media (min-width: 768px) {
  .stat-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}
.stat__label {
  font-size: var(--step--1);
  color: var(--ink-soft);
  max-width: 28ch;
}

.breadcrumbs {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.35rem;
  color: var(--line);
}
.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

.site-footer {
  background: var(--deep);
  color: var(--surface-alt);
  padding-block: var(--space-xl) var(--space-md);
  font-size: var(--step--1);
}
.site-footer a {
  text-decoration: none;
  color: rgba(245, 243, 239, 0.78);
}
.site-footer a:hover {
  color: var(--accent);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-grid h3 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.footer-grid li + li {
  margin-top: 0.5rem;
}
.footer-brand p {
  color: rgba(245, 243, 239, 0.72);
  max-width: 36ch;
}
.nap {
  margin-top: var(--space-md);
  color: rgba(245, 243, 239, 0.72);
  line-height: 1.7;
}
.nap a {
  color: rgba(245, 243, 239, 0.9);
}
.prose .nap {
  color: var(--ink);
}
.prose .nap a {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(245, 243, 239, 0.12);
  color: rgba(245, 243, 239, 0.55);
}
.socials {
  display: flex;
  gap: 0.75rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(245, 243, 239, 0.2);
  border-radius: var(--radius);
}
.socials svg {
  width: 1rem;
  height: 1rem;
}

body.is-nav-open {
  overflow: hidden;
}
