/* Page structure: container, light/dark sections, grids and brand details. */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

/* Themes. Gold text is only allowed inside .theme-dark. */
.theme-light {
  background: var(--color-bg-light);
  color: var(--color-text);
}

.theme-white {
  background: var(--color-white);
  color: var(--color-text);
}

.theme-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.theme-surface {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}

.theme-surface {
  --color-focus-on-light: var(--color-focus);
}

/* Sections */
.section {
  position: relative;
  padding-block: var(--section-padding);
  overflow: hidden;
}

.section--tight {
  padding-block: var(--space-7);
}

.section__header {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-7);
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.section__header > * + * {
  margin-top: var(--space-4);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

:is(.theme-dark, .theme-surface) .lead {
  color: var(--color-text-muted-on-dark);
}

/* Eyebrow above headings: gold text on dark, text colour + gold line on light */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  border-top: var(--line-gold);
}

:is(.theme-dark, .theme-surface) .eyebrow {
  color: var(--color-gold);
}

/* Thin gold separator */
.divider {
  width: 4rem;
  height: 0;
  border: 0;
  border-top: var(--line-gold);
}

.divider--full {
  width: 100%;
  border-top-color: rgb(212 162 31 / 0.4);
}

/* Grids: single column on mobile, expand with min-width */
.grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 40em) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62em) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stack > * + * {
  margin-top: var(--space-4);
}

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

/* Subtle orbit/globe motif for dark sections (decorative only) */
.orbit {
  position: absolute;
  inset: auto -30% -55% auto;
  width: min(42rem, 120vw);
  aspect-ratio: 1;
  border: 1px solid rgb(212 162 31 / 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orbit::before {
  inset: 12%;
  border: 1px solid rgb(201 204 209 / 0.08);
}

.orbit::after {
  inset: 38% -18%;
  border: 1px solid rgb(212 162 31 / 0.18);
  transform: rotate(-18deg);
}

.section > .container {
  position: relative;
}

/* Hero */
.hero {
  padding-block: var(--space-8) var(--space-9);
}

.hero__content {
  max-width: 40rem;
}

.hero__content > * + * {
  margin-top: var(--space-5);
}

.hero h1 {
  color: var(--color-white);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

@media (min-width: 30em) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Main area leaves room for the mobile contact bar */
.site-main {
  display: block;
}

/* Hero with image: stacked on mobile, two columns from 62em */
.hero__inner {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 62em) {
  .hero--media .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.section__footer {
  margin-top: var(--space-6);
}

/* Call to action */
.cta__content {
  margin-bottom: 0;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

@media (min-width: 30em) {
  .cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

:is(.theme-dark, .theme-surface) .cta h2 {
  color: var(--color-white);
}
