/* ==========================================================================
   Briarmont Properties Ltd. — main stylesheet
   Brand source: Font-and-Colours-Guidelines/Guideline.pdf
   ========================================================================== */

/* Brand fonts (self-hosted, Latin subset) ---------------------------------- */

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-baskerville-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
}

/* Tokens ------------------------------------------------------------------- */

:root {
  /* Official brand colours */
  --navy: #1d213d;
  --gold: #d8b593;
  --gold-1: #d0a478;
  --gold-2: #dab999;
  --gold-3: #dcbd9f;
  --gold-gradient: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);

  /* Supporting neutrals, derived from the brand palette */
  --white: #ffffff;
  --ivory: #f9f5f0;                         /* gold tinted into white */
  --text-on-light: var(--navy);
  --muted-on-light: rgba(29, 33, 61, 0.76);
  --line-on-light: rgba(29, 33, 61, 0.14);
  --text-on-dark: #f9f5f0;
  --muted-on-dark: rgba(249, 245, 240, 0.76);
  --line-on-dark: rgba(216, 181, 147, 0.22);

  /* Typography: Libre Baskerville 400 + Nunito 600 per brand guidelines */
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --weight-brand: 600;
  --tracking-caps: 0.18em;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(4.5rem, 10vw, 8rem);
  --header-height: 4.75rem;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base --------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text-on-light);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.22;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: var(--weight-brand);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Layout ------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section {
  padding-block: var(--section-space);
  background: var(--white);
}

.section--ivory {
  background: var(--ivory);
}

.section--navy {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head > * + * {
  margin-top: 1.25rem;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: none;
}

.section-head--row > div {
  max-width: 46rem;
}

.section-head--row > * + * {
  margin-top: 0;
}

.section-head--row > div > * + * {
  margin-top: 1.25rem;
}

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

.section-head--center .eyebrow {
  justify-content: center;
}

.split {
  display: grid;
  gap: 2rem 4rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
  }
}

.split__aside > * + * {
  margin-top: 1.25rem;
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose p,
.section-head p:not(.eyebrow) {
  color: var(--muted-on-light);
}

.section--navy .section-head p:not(.eyebrow) {
  color: var(--muted-on-dark);
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.prose .lede {
  color: var(--text-on-light);
}

.statement {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.35;
}

/* Brand typography helpers ---------------------------------------------- */

/* Tracked capitals in Nunito 600 echo the tagline treatment in the logo. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: var(--weight-brand);
  letter-spacing: var(--tracking-caps);
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 1px;
  background: var(--gold-gradient);
}

.eyebrow--dark {
  color: var(--navy);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: var(--weight-brand);
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tag--light {
  border-color: var(--line-on-light);
  color: var(--muted-on-light);
}

/* Buttons and links ----------------------------------------------------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: var(--weight-brand);
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), filter 0.25s var(--ease);
}

.button--primary {
  background: var(--gold-gradient);
  color: var(--navy);
}

.button--primary:hover {
  filter: brightness(1.06);
}

.button--ghost {
  border-color: var(--line-on-dark);
  color: var(--gold);
}

.button--ghost:hover {
  border-color: var(--gold);
  background: rgba(216, 181, 147, 0.08);
}

.button--dark {
  background: var(--navy);
  color: var(--gold);
}

.button--dark:hover {
  background: #2a2f52;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: var(--weight-brand);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3rem;
}

.text-link::after {
  content: "\2192";
  transition: transform 0.25s var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Header ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-on-dark);
  box-shadow: 0 10px 30px rgba(13, 15, 30, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-height);
}

.site-header__logo {
  flex: none;
}

.site-header__logo img {
  width: auto;
  height: 2.5rem;
}

.site-nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 0.75rem 0;
  color: var(--muted-on-dark);
  font-size: 0.78rem;
  font-weight: var(--weight-brand);
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
}

/* Desktop navigation: a single row that comfortably fits more items later. */
@media (min-width: 900px) {
  .site-nav__list {
    gap: clamp(1.25rem, 2.6vw, 2.5rem);
  }

  .site-nav__link {
    position: relative;
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.35rem;
    left: 0;
    height: 1px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }

  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

/* Mobile navigation: a disclosure panel beneath the header. */
@media (max-width: 899.98px) {
  .site-header__logo img {
    height: 2.1rem;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gold);
    cursor: pointer;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 1.375rem;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }

  .is-menu-open .nav-toggle__bars { background: transparent; }
  .is-menu-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .is-menu-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--navy);
    border-bottom: 1px solid var(--line-on-dark);
  }

  .js .is-menu-open .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
  }

  .no-js .site-nav__list {
    flex-flow: row wrap;
    gap: 0 1.5rem;
    padding-bottom: 0.75rem;
  }

  .js .site-nav__link {
    padding: 0.95rem 0;
    border-top: 1px solid rgba(216, 181, 147, 0.12);
    font-size: 0.85rem;
  }
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(52rem, calc(100svh - var(--header-height)));
  padding-block: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 85% 40%, rgba(216, 181, 147, 0.09), transparent 70%),
    var(--navy);
  color: var(--text-on-dark);
}

/* The official symbol, used large and faint as a quiet brand device. */
.hero__mark {
  position: absolute;
  top: 50%;
  right: max(-6rem, calc((100vw - var(--container)) / 2 - 8rem));
  width: min(40rem, 70vw);
  opacity: 0.07;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__inner > * {
  max-width: 44rem;
}

.hero__title {
  margin-top: 1.75rem;
  color: var(--text-on-dark);
}

.hero__tagline {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin-top: 2rem;
  color: var(--muted-on-dark);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
}

.hero .button-row {
  margin-top: 2.75rem;
}

@media (max-width: 899.98px) {
  .hero__mark {
    top: 1.5rem;
    right: -18vw;
    width: 75vw;
    opacity: 0.05;
    transform: none;
  }
}

/* Inner page hero ---------------------------------------------------------- */

.page-hero {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(216, 181, 147, 0.08), transparent 70%),
    var(--navy);
  color: var(--text-on-dark);
}

.page-hero .container > * {
  max-width: 48rem;
}

.page-hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

.page-hero .button-row {
  margin-top: 2.25rem;
}

.page-hero .lede {
  margin-top: 1.5rem;
  color: var(--muted-on-dark);
}

/* Approach pillars --------------------------------------------------------- */

.pillars {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

.pillar {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-on-light);
  position: relative;
}

.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--gold-gradient);
}

.pillar__index {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pillar__title {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: var(--weight-brand);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.pillar p {
  margin-top: 0.75rem;
  color: var(--muted-on-light);
}

/* Areas of focus ----------------------------------------------------------- */

.focus-grid {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
}

@media (min-width: 640px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .focus-grid { grid-template-columns: repeat(4, 1fr); }
}

.focus-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--navy);
  transition: background-color 0.3s var(--ease);
}

.focus-card:hover {
  background: #222747;
}

.focus-card .tag {
  align-self: flex-start;
}

.focus-card__title {
  margin-top: 1.5rem;
  color: var(--text-on-dark);
}

.focus-card p {
  color: var(--muted-on-dark);
  font-size: 0.98rem;
}

/* Insight cards ------------------------------------------------------------ */

.insight-grid {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .insight-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.4vw, 2rem);
  }
}

/* On phones the home page cards become a swipeable row (CSS only, no JS). */
@media (max-width: 759px) {
  .insight-grid--slider {
    display: flex;
    gap: 1rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .insight-grid--slider > .insight-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .insight-grid--slider:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
  }
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.insight-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 120%, rgba(216, 181, 147, 0.18), transparent 60%),
    var(--navy);
}

.insight-card__media img {
  width: 2.75rem;
  opacity: 0.85;
}

.insight-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
}

.insight-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: var(--weight-brand);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-card__title {
  font-size: 1.3rem;
}

.insight-card p:last-child {
  color: var(--muted-on-light);
  font-size: 0.98rem;
}

/* Roadmap ------------------------------------------------------------------ */

.roadmap {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .roadmap {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

.roadmap__step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--line-on-light);
}

.roadmap__step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-gradient);
}

.roadmap__stage {
  display: block;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: var(--weight-brand);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.roadmap__title {
  margin-top: 0.85rem;
}

.roadmap__step p {
  margin-top: 0.75rem;
  color: var(--muted-on-light);
}

/* Values ------------------------------------------------------------------- */

.values {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

.value {
  padding: 2rem;
  background: var(--white);
  border-top: 1px solid var(--gold);
}

.value p {
  margin-top: 0.75rem;
  color: var(--muted-on-light);
}

/* Founder ------------------------------------------------------------------ */

.founder {
  display: grid;
  gap: 3rem 5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .founder {
    grid-template-columns: 5fr 7fr;
  }
}

.founder__photo {
  position: relative;
  max-width: 28rem;
  margin: 0 1rem 1rem 0;
}

/* A thin offset gold frame behind the portrait. */
.founder__photo::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--gold);
}

.founder__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
}

.founder__body h2 {
  margin-top: 1.25rem;
}

.founder__signoff {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-light);
  color: var(--navy) !important;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.founder__signoff span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-on-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: var(--weight-brand);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* Placeholder note: marks content that is intentionally still to come. */
.placeholder-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed rgba(29, 33, 61, 0.28);
  border-radius: var(--radius);
  color: var(--muted-on-light);
  font-size: 0.95rem;
}

.narrow .placeholder-note {
  margin-top: 0;
}

/* Contact form ------------------------------------------------------------- */

/* A white card floating on the ivory section, with labels stacked above
   full-width filled fields. */

.contact-card {
  position: relative;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 0.5rem;
  background: var(--white);
  box-shadow: 0 1.5rem 3.5rem -1.5rem rgba(29, 33, 61, 0.28),
    0 0 0 1px var(--line-on-light);
}

/* Gold rule across the top edge, as on the approach pillars */
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.75rem, 5vw, 3.5rem);
  width: 4rem;
  height: 2px;
  background: var(--gold-gradient);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-form .field {
  display: grid;
  gap: 0.6rem;
}

.contact-form .field label {
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: var(--weight-brand);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(29, 33, 61, 0.2);
  border-radius: 0.5rem;
  background: rgba(29, 33, 61, 0.04);
  color: var(--navy);
  font: inherit;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(29, 33, 61, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-1);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(208, 164, 120, 0.3);
  outline: none;
}

.field__hint {
  margin: 0;
  color: var(--muted-on-light);
  font-size: 0.9rem;
}

.contact-form__submit {
  justify-self: center;
  min-width: 14rem;
  margin-top: 0.75rem;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 639px) {
  .contact-form__submit { width: 100%; }
}

/* Closing CTA -------------------------------------------------------------- */

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 44rem;
  text-align: center;
}

.cta__inner > * + * {
  margin-top: 1.5rem;
}

.cta .lede {
  color: var(--muted-on-dark);
}

.cta .button {
  margin-top: 2.25rem;
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
  padding-block: 4rem 2rem;
  background: var(--navy);
  border-top: 1px solid var(--line-on-dark);
  color: var(--muted-on-dark);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(216, 181, 147, 0.12);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-footer__symbol {
  width: 2.75rem;
}

.site-footer__name {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.site-footer__tagline {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: var(--weight-brand);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav .site-nav__link {
  padding: 0.5rem 0;
}

.site-footer__nav .site-nav__link::after {
  display: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 2rem;
  font-size: 0.85rem;
}

.site-footer__company {
  flex-basis: 100%;
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer__legal {
  padding: 0.5rem 0;
  color: var(--muted-on-dark);
  font-size: 0.78rem;
  font-weight: var(--weight-brand);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__legal:hover,
.site-footer__legal:focus-visible {
  color: var(--gold);
}

/* Reveal on scroll (JS only; content is visible without it) ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Insight posts ------------------------------------------------------------ */

.post-meta {
  color: var(--muted-on-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.post-back {
  margin-top: 3rem;
  font-weight: var(--weight-brand);
}

.insight-card__title a {
  color: inherit;
  text-decoration: none;
}

.insight-card__title a:hover,
.insight-card__title a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
}
