/* ==========================================================================
   Triple Eight Advisory
   Foundation layer: design tokens, reset, base typography, primitives.

   Section styles are appended as each section is built. Everything derives
   from the tokens below, so a brand change happens in one place.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   Mirrors the palette and type scale used across the brand.
   -------------------------------------------------------------------------- */

:root {
  /* Navy */
  --te-navy-deep: #081426;
  --te-navy: #0d1b33;
  --te-navy-soft: #16294a;
  --te-navy-line: #25324a;

  /* Gold */
  --te-gold: #c9a24b;
  --te-gold-deep: #a9822e;
  --te-gold-soft: #e7d5a8;
  --te-gold-tint: #f3ecd8;

  /* Neutrals */
  --te-silver: #9ba6b4;
  --te-silver-soft: #c7cfd8;
  --te-ink: #0d1b33;
  --te-ink-muted: #52627a;
  --te-line: #dfd9cd;
  --te-canvas: #faf6ee;
  --te-card: #ffffff;

  /* Translucent variants, used for borders and glows over imagery */
  --te-gold-a15: rgb(201 162 75 / 0.15);
  --te-gold-a30: rgb(201 162 75 / 0.30);
  --te-navy-a08: rgb(13 27 51 / 0.08);
  --te-navy-a55: rgb(13 27 51 / 0.55);

  /* Typography */
  --te-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --te-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --te-text-xs: 0.6875rem;
  --te-text-sm: 0.8125rem;
  --te-text-base: 1rem;
  --te-text-lead: 1.0625rem;
  --te-text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --te-text-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --te-text-h1: clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem);

  --te-leading-tight: 1.12;
  --te-leading-snug: 1.35;
  --te-leading-body: 1.75;
  --te-tracking-eyebrow: 0.24em;

  /* Spacing */
  --te-space-1: 0.5rem;
  --te-space-2: 1rem;
  --te-space-3: 1.5rem;
  --te-space-4: 2.5rem;
  --te-space-5: 4rem;
  --te-space-6: 6rem;
  --te-space-7: 8rem;

  /* Layout */
  --te-container: 1240px;
  --te-container-narrow: 760px;
  --te-gutter: 1.5rem;
  --te-header-height: 7rem;

  /* Radius: one scale, no one-off values */
  --te-radius-sm: 0.375rem;
  --te-radius: 0.625rem;
  --te-radius-md: 0.875rem;
  --te-radius-lg: 1.125rem;
  --te-radius-xl: 1.375rem;
  --te-radius-2xl: 1.625rem;
  --te-radius-pill: 999px;

  /* Elevation, tinted navy rather than neutral black so shadows sit in-palette */
  --te-shadow-sm: 0 1px 2px rgb(8 20 38 / 0.06);
  --te-shadow: 0 10px 25px -12px rgb(8 20 38 / 0.25);
  --te-shadow-lg: 0 30px 60px -30px rgb(8 20 38 / 0.35);

  /* Motion */
  --te-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --te-duration: 300ms;
}

@media (min-width: 768px) {
  :root {
    --te-gutter: 2.5rem;
    --te-header-height: 8rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

/* The hidden attribute must win over component display rules. */
[hidden] {
  display: none !important;
}

/* Per-section responsive visibility, set from the admin (Home: Section
   visibility). mobile < 768px, tablet 768-1023px, desktop >= 1024px. */
@media (max-width: 767px) {
  .te-hide-mobile { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .te-hide-tablet { display: none !important; }
}
@media (min-width: 1024px) {
  .te-hide-desktop { display: none !important; }
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Honour a visitor's request for reduced motion across the whole theme. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background-color: var(--te-canvas);
  color: var(--te-ink);
  font-family: var(--te-font-body);
  font-size: var(--te-text-lead);
  line-height: var(--te-leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--te-gold-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--te-navy);
}

/* Visible focus for keyboard users, suppressed for mouse clicks. */
:focus-visible {
  outline: 2px solid var(--te-gold);
  outline-offset: 3px;
  border-radius: var(--te-radius-sm);
}

/* --------------------------------------------------------------------------
   3. Typography
   Hierarchy comes from size and typeface, not from heavy weights.
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-family: var(--te-font-display);
  font-weight: 500;
  line-height: var(--te-leading-tight);
  color: var(--te-navy);
  text-wrap: balance;
}

h1 { font-size: var(--te-text-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--te-text-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--te-text-h3); }

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--te-ink-muted);
  max-width: 60ch;
}

.prose {
  max-width: 66ch;
}

.prose > * + * {
  margin-top: 1.1em;
}

/* The small gold uppercase label that opens most sections. */
.eyebrow {
  display: inline-block;
  font-family: var(--te-font-body);
  font-size: var(--te-text-xs);
  font-weight: 600;
  letter-spacing: var(--te-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--te-gold-deep);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--te-container);
  margin-inline: auto;
  padding-inline: var(--te-gutter);
}

.container--narrow {
  max-width: var(--te-container-narrow);
}

.section {
  padding-block: var(--te-space-6);
}

.section-sm {
  padding-block: var(--te-space-5);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--te-space-7);
  }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--te-radius);
  font-size: var(--te-text-sm);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform var(--te-duration) var(--te-ease),
    background-color var(--te-duration) var(--te-ease),
    color var(--te-duration) var(--te-ease),
    border-color var(--te-duration) var(--te-ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background-color: var(--te-gold);
  color: var(--te-navy);
  box-shadow: 0 15px 30px -10px var(--te-gold-a30);
}

.btn--primary:hover {
  background-color: var(--te-gold-soft);
  color: var(--te-navy);
}

.btn--secondary {
  background-color: var(--te-navy);
  color: #fff;
}

.btn--secondary:hover {
  background-color: var(--te-navy-soft);
  color: #fff;
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--te-gold-deep);
  color: var(--te-navy);
}

.btn--ghost:hover {
  background-color: var(--te-gold-tint);
  color: var(--te-navy);
}

/* --------------------------------------------------------------------------
   6. Header
   Sticky bar, primary navigation with mega panels, call to action and the
   mobile drawer.
   -------------------------------------------------------------------------- */

.site-header {
  /*
   * Header appearance is expressed entirely through these variables. The base
   * values below are the Light preset; each preset (further down) overrides
   * them, and the Customizer emits any colour override inline on this element,
   * which wins over both. Change the look by changing a variable, never by
   * touching the component rules.
   */
  --te-header-bg: rgb(255 255 255 / 0.92);
  --te-header-bg-scrolled: rgb(255 255 255 / 0.96);
  --te-header-text: var(--te-navy);
  --te-header-accent: var(--te-gold-deep);
  --te-header-underline: var(--te-gold);
  --te-header-border: var(--te-navy-a08);
  --te-header-cta-bg: var(--te-navy);
  --te-header-cta-text: #ffffff;
  --te-header-shadow: var(--te-shadow);
  --te-header-hover-bg: var(--te-gold-a15);

  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--te-header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--te-header-border);
  transition:
    transform 350ms var(--te-ease),
    background-color var(--te-duration) var(--te-ease),
    box-shadow var(--te-duration) var(--te-ease);
}

/* Past the fold the bar earns a little more weight so it separates from content. */
.site-header.is-scrolled {
  background-color: var(--te-header-bg-scrolled);
  box-shadow: var(--te-header-shadow);
}

/* --------------------------------------------------------------------------
   Header style presets
   Each sets the variables above. Selected in Appearance > Customise > Header.
   -------------------------------------------------------------------------- */

.site-header[data-header-style="navy"] {
  --te-header-bg: rgb(8 20 38 / 0.92);
  --te-header-bg-scrolled: rgb(8 20 38 / 0.98);
  --te-header-text: #eef1f6;
  --te-header-accent: var(--te-gold);
  --te-header-underline: var(--te-gold);
  --te-header-border: var(--te-navy-line);
  --te-header-cta-bg: var(--te-gold);
  --te-header-cta-text: var(--te-navy);
  --te-header-hover-bg: rgb(201 162 75 / 0.18);
}

/*
 * Transparent sits over the page with no background at rest and turns solid on
 * scroll. It is designed to overlay a dark hero, which arrives with the home
 * sections; until then its text stays navy so it remains readable on light
 * pages. Over a dark hero, set the text override to a light colour.
 */
.site-header[data-header-style="transparent"] {
  --te-header-bg: transparent;
  --te-header-bg-scrolled: rgb(255 255 255 / 0.96);
  --te-header-border: transparent;
  --te-header-shadow: var(--te-shadow);
}

.site-header[data-header-style="transparent"]:not(.is-scrolled) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header[data-header-style="bordered"] {
  --te-header-bg: rgb(255 255 255 / 0.96);
  --te-header-bg-scrolled: rgb(255 255 255 / 0.98);
  --te-header-border: var(--te-gold);
  --te-header-shadow: none;
}

.site-header[data-header-style="gold"] {
  --te-header-accent: var(--te-gold-deep);
  --te-header-underline: var(--te-gold);
  --te-header-cta-bg: var(--te-gold);
  --te-header-cta-text: var(--te-navy);
}

/* Gold accent carries a thin brand strip across the very top. */
.site-header[data-header-style="gold"]::before {
  content: "";
  display: block;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    var(--te-gold-deep),
    var(--te-gold),
    var(--te-gold-deep)
  );
}

/* Retreats on the way down, returns on the first flick upward. */
.site-header.is-hidden {
  transform: translateY(-100%);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform var(--te-duration) var(--te-ease);
}

.site-logo:hover {
  transform: scale(1.02);
}

.site-logo__img {
  height: 4rem;
  width: auto;
}

@media (min-width: 768px) {
  .site-logo__img {
    height: 5.75rem;
  }
}

.site-logo__text {
  font-family: var(--te-font-display);
  font-size: 1.25rem;
  color: var(--te-header-text);
}

/* --- Primary navigation ---------------------------------------------- */

.site-header__nav {
  display: none;
}

@media (min-width: 1080px) {
  .site-header__nav {
    /*
     * Containing block for the mega panels. Anchoring them to the nav rather
     * than to each item keeps a 960px panel centred and inside the viewport,
     * even when its trigger sits at the far right of the bar.
     */
    display: block;
    position: relative;
    align-self: stretch;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1280px) {
  .nav-menu {
    gap: 2.25rem;
  }
}

.nav-menu__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--te-header-text);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--te-radius-pill);
  transition:
    color var(--te-duration) var(--te-ease),
    background-color var(--te-duration) var(--te-ease);
}

/* Gold rule that draws in from the left on hover and stays for the current page. */
.nav-menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: var(--te-radius-pill);
  background-color: var(--te-header-underline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--te-duration) var(--te-ease);
}

.nav-menu__item:hover .nav-menu__link,
.nav-menu__item:focus-within .nav-menu__link {
  color: var(--te-header-accent);
}

.nav-menu__item:hover .nav-menu__link::after,
.nav-menu__item:focus-within .nav-menu__link::after,
.nav-menu__item.is-current .nav-menu__link::after {
  transform: scaleX(1);
}

.nav-menu__item.is-current .nav-menu__link {
  color: var(--te-header-accent);
}

/* --- Hover treatments ------------------------------------------------- */

/* Colour change: no underline, the link recolours only. */
.site-header[data-header-hover="color"] .nav-menu__link::after {
  display: none;
}

/* Pill highlight: a rounded tint sits behind the link, underline suppressed. */
.site-header[data-header-hover="pill"] .nav-menu__link::after {
  display: none;
}

.site-header[data-header-hover="pill"] .nav-menu__link {
  padding-inline: 0.85rem;
}

.site-header[data-header-hover="pill"] .nav-menu__item:hover .nav-menu__link,
.site-header[data-header-hover="pill"] .nav-menu__item:focus-within .nav-menu__link,
.site-header[data-header-hover="pill"] .nav-menu__item.is-current .nav-menu__link {
  background-color: var(--te-header-hover-bg);
}

.nav-menu__toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  margin-left: 0.125rem;
  background: none;
  border: 0;
  color: var(--te-header-text);
}

.nav-menu__toggle .icon {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform var(--te-duration) var(--te-ease);
}

.nav-menu__item:hover .nav-menu__toggle,
.nav-menu__item:focus-within .nav-menu__toggle {
  color: var(--te-header-accent);
}

.nav-menu__item:hover .nav-menu__toggle .icon,
.nav-menu__item.is-open .nav-menu__toggle .icon {
  transform: rotate(180deg);
}

/* --- Mega panels ------------------------------------------------------ */

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  width: min(880px, calc(100vw - 3rem));
  background-color: var(--te-card);
  border: 1px solid var(--te-navy-a08);
  border-radius: var(--te-radius-xl);
  box-shadow: var(--te-shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.5rem);
  transition:
    opacity 200ms var(--te-ease),
    transform 200ms var(--te-ease),
    visibility 200ms;
}

.mega--columns {
  width: min(960px, calc(100vw - 3rem));
}

.mega--list {
  width: min(720px, calc(100vw - 3rem));
}

/*
 * Hover opens it, and :focus-within keeps it open once a keyboard user tabs
 * from the trigger into the panel. The is-open class is what the toggle button
 * drives, which is the path touch and screen reader users take.
 */
.nav-menu__item--mega:hover .mega,
.nav-menu__item--mega:focus-within .mega,
.nav-menu__item--mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega__body {
  display: grid;
}

.mega--rail .mega__body {
  grid-template-columns: 260px minmax(0, 1fr);
}

.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--te-space-2);
  padding: 0.75rem 1.25rem;
  background-color: var(--te-canvas);
  border-top: 1px solid var(--te-navy-a08);
}

.mega__note {
  font-size: var(--te-text-sm);
  color: var(--te-ink-muted);
}

.mega__overview {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--te-text-sm);
  font-weight: 600;
  color: var(--te-navy);
  text-decoration: none;
  white-space: nowrap;
}

.mega__overview:hover {
  color: var(--te-gold-deep);
}

.mega__overview .icon {
  width: 0.8125rem;
  height: 0.8125rem;
}

/* Rail layout */

.mega__rail {
  padding-block: 0.5rem;
  background-color: var(--te-canvas);
  border-right: 1px solid var(--te-navy-a08);
}

.mega__rail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  text-align: left;
  font-size: var(--te-text-sm);
  font-weight: 600;
  color: var(--te-ink-muted);
  transition:
    background-color var(--te-duration) var(--te-ease),
    color var(--te-duration) var(--te-ease);
}

.mega__rail-item.is-active {
  background-color: var(--te-card);
  border-left-color: var(--te-gold-deep);
  color: var(--te-navy);
}

.mega__rail-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega__rail-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: var(--te-radius-sm);
  background-color: rgb(13 27 51 / 0.04);
  color: var(--te-navy);
  transition:
    background-color var(--te-duration) var(--te-ease),
    color var(--te-duration) var(--te-ease);
}

.mega__rail-ico .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.mega__rail-item.is-active .mega__rail-ico {
  background-color: rgb(201 162 75 / 0.15);
  color: var(--te-gold-deep);
}

.mega__rail-chev {
  display: inline-flex;
  flex-shrink: 0;
}

.mega__rail-chev .icon {
  width: 0.8125rem;
  height: 0.8125rem;
  color: rgb(13 27 51 / 0.2);
  transition:
    transform var(--te-duration) var(--te-ease),
    color var(--te-duration) var(--te-ease);
}

.mega__rail-item.is-active .mega__rail-chev .icon {
  color: var(--te-gold-deep);
  transform: translateX(2px);
}

.mega__pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.5rem;
}

.mega__pane[hidden] {
  display: none;
}

.mega__pane-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.mega__pane-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--te-radius-sm);
  background-color: rgb(201 162 75 / 0.12);
  color: var(--te-gold-deep);
}

.mega__pane-ico .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.mega__pane-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: var(--te-text-sm);
  font-weight: 600;
  color: var(--te-gold-deep);
  text-decoration: none;
}

.mega__pane-cta:hover {
  color: var(--te-navy);
}

.mega__pane-cta .icon {
  width: 0.8125rem;
  height: 0.8125rem;
}

.mega__pane-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--te-text-sm);
  font-weight: 700;
  color: var(--te-navy);
  text-decoration: none;
}

.mega__pane-title:hover {
  color: var(--te-gold-deep);
}

.mega__pane-title .icon {
  width: 0.8125rem;
  height: 0.8125rem;
}

.mega__pane-blurb {
  margin: 0.4rem 0 0.75rem;
  font-size: var(--te-text-sm);
  line-height: 1.6;
  color: var(--te-ink-muted);
}

/* Columns layout */

.mega__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  padding: 1.5rem;
}

.mega__col-title {
  display: block;
  font-size: var(--te-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--te-gold-deep);
  text-decoration: none;
}

.mega__col-blurb {
  margin: 0.3rem 0 0.6rem;
  font-size: var(--te-text-xs);
  line-height: 1.55;
  color: var(--te-ink-muted);
}

.mega__col .mega__links {
  padding-top: 0.4rem;
  border-top: 1px solid var(--te-navy-a08);
}

/* Shared link lists */

.mega__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.4rem;
  margin-inline: -0.4rem;
  border-radius: var(--te-radius-sm);
  font-size: var(--te-text-sm);
  color: var(--te-ink-muted);
  text-decoration: none;
  transition:
    background-color var(--te-duration) var(--te-ease),
    color var(--te-duration) var(--te-ease);
}

.mega__link:hover {
  background-color: var(--te-canvas);
  color: var(--te-navy);
}

.mega__dot {
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: var(--te-radius-pill);
  background-color: var(--te-gold-deep);
}

/* List layout */

.mega__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 1.25rem;
  list-style: none;
}

.mega__list-item {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--te-radius);
  text-decoration: none;
  transition: background-color var(--te-duration) var(--te-ease);
}

.mega__list-item:hover {
  background-color: var(--te-canvas);
}

.mega__list-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--te-text-sm);
  font-weight: 600;
  color: var(--te-navy);
}

.mega__list-title .icon {
  width: 0.8125rem;
  height: 0.8125rem;
  color: var(--te-gold-deep);
}

.mega__list-blurb {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--te-text-xs);
  line-height: 1.55;
  color: var(--te-ink-muted);
}

/* --- Call to action and menu button ----------------------------------- */

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--te-gold-a30);
  border-radius: var(--te-radius-md);
  background-color: var(--te-header-cta-bg);
  color: var(--te-header-cta-text);
  font-size: var(--te-text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: var(--te-shadow-sm);
  transition:
    transform var(--te-duration) var(--te-ease),
    box-shadow var(--te-duration) var(--te-ease);
}

@media (min-width: 1080px) {
  .header-cta {
    display: inline-flex;
  }
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--te-shadow);
  color: var(--te-header-cta-text);
}

/* The chip tints the button text colour so it reads on any button background. */
.header-cta__icon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--te-radius-pill);
  background-color: rgb(255 255 255 / 0.16);
  color: var(--te-header-cta-text);
  transition:
    background-color var(--te-duration) var(--te-ease),
    color var(--te-duration) var(--te-ease);
}

.header-cta:hover .header-cta__icon {
  background-color: rgb(255 255 255 / 0.28);
}

.header-cta__icon .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.site-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--te-radius);
  color: var(--te-header-text);
}

@media (min-width: 1080px) {
  .site-header__toggle {
    display: none;
  }
}

/* Three bars drawn from one element, so there is no extra markup. */
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: var(--te-radius-pill);
  background-color: currentColor;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -0.4rem;
}

.hamburger::after {
  top: 0.4rem;
}

/* --- Mobile drawer ---------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background-color: var(--te-navy);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  transform: translateX(100%);
  transition:
    transform 350ms var(--te-ease),
    visibility 350ms;
}

.drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}

/* Stops the page behind the drawer from scrolling with it. */
body.has-drawer-open {
  overflow: hidden;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--te-space-2);
  padding: var(--te-space-2) var(--te-gutter);
  border-bottom: 1px solid var(--te-navy-line);
}

.site-logo--drawer .site-logo__img {
  height: 3.25rem;
}

.site-logo--drawer .site-logo__text {
  color: var(--te-gold-soft);
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 0;
  border-radius: var(--te-radius);
  color: #fff;
}

.drawer__close:hover {
  color: var(--te-gold);
}

.drawer__close .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.drawer__nav {
  flex: 1;
  padding: var(--te-space-2) var(--te-gutter);
}

.drawer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer-menu--depth-0 > .drawer-menu__item {
  border-bottom: 1px solid var(--te-navy-line);
}

.drawer-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--te-space-1);
}

.drawer-menu__link {
  flex: 1;
  padding-block: 0.85rem;
  color: #fff;
  text-decoration: none;
}

.drawer-menu--depth-0 > .drawer-menu__item > .drawer-menu__row > .drawer-menu__link {
  font-family: var(--te-font-display);
  font-size: 1.5rem;
}

.drawer-menu--depth-1 > .drawer-menu__item > .drawer-menu__row > .drawer-menu__link {
  font-size: var(--te-text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--te-gold);
}

.drawer-menu--depth-2 .drawer-menu__link {
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 0.82);
}

.drawer-menu__link:hover {
  color: var(--te-gold);
}

.drawer-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  background: none;
  border: 0;
  color: var(--te-gold);
}

.drawer-menu__toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--te-duration) var(--te-ease);
}

.drawer-menu__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.drawer-menu__sub {
  padding-left: 0.75rem;
  padding-bottom: 0.5rem;
}

.drawer-menu__sub[hidden] {
  display: none;
}

.drawer__foot {
  padding: var(--te-space-3) var(--te-gutter) var(--te-space-4);
}

.drawer__cta {
  width: 100%;
}

.drawer__cta .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.site-footer {
  /*
   * Like the header, the footer is driven entirely by variables. The base
   * values are the Navy gradient preset; each preset overrides them and the
   * Customizer emits colour overrides inline, which win. Selected in
   * Appearance > Customise > Footer.
   */
  --te-footer-bg: var(--te-navy-deep);
  --te-footer-bg-image: linear-gradient(180deg, var(--te-navy) 0%, var(--te-navy-deep) 55%);
  --te-footer-text: var(--te-silver-soft);
  --te-footer-heading: var(--te-gold);
  --te-footer-link: var(--te-silver-soft);
  --te-footer-link-hover: var(--te-gold);
  --te-footer-border: var(--te-navy-line);
  --te-footer-accent: var(--te-gold);
  --te-footer-muted: var(--te-silver);
  --te-footer-chip-bg: var(--te-gold-a15);

  position: relative;
  overflow: hidden;
  background-color: var(--te-footer-bg);
  background-image: var(--te-footer-bg-image);
  color: var(--te-footer-text);
}

/* --- Footer style presets --------------------------------------------- */

.site-footer[data-footer-style="navy-solid"] {
  --te-footer-bg-image: none;
}

.site-footer[data-footer-style="charcoal"] {
  --te-footer-bg: #0a0e16;
  --te-footer-bg-image: none;
}

/* Light footer: text and links flip to dark, headings and chips stay gold. */
.site-footer[data-footer-style="ivory"] {
  --te-footer-bg: var(--te-canvas);
  --te-footer-bg-image: none;
  --te-footer-text: var(--te-ink-muted);
  --te-footer-heading: var(--te-gold-deep);
  --te-footer-link: var(--te-ink-muted);
  --te-footer-link-hover: var(--te-gold-deep);
  --te-footer-border: var(--te-line);
  --te-footer-accent: var(--te-gold-deep);
  --te-footer-muted: var(--te-ink-muted);
  --te-footer-chip-bg: rgb(201 162 75 / 0.14);
}

/* Gold hairline that fades in from both edges across the very top. */
.site-footer__accent {
  display: block;
  height: 3px;
  width: 100%;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    var(--te-gold) 30%,
    var(--te-gold-soft) 50%,
    var(--te-gold) 70%,
    transparent 100%
  );
}

/* Soft gold bloom behind the top of the footer. */
.site-footer__glow {
  position: absolute;
  top: -8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  max-width: 90%;
  height: 320px;
  border-radius: var(--te-radius-pill);
  background-image: radial-gradient(closest-side, var(--te-gold), transparent);
  opacity: 0.07;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  padding-block: var(--te-space-5) var(--te-space-4);
}

.site-footer__grid {
  display: grid;
  gap: var(--te-space-4);
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: var(--te-space-3);
  }
}

/* --- Brand column ----------------------------------------------------- */

.footer-brand {
  max-width: 22rem;
}

.site-logo--footer .site-logo__img {
  height: 6rem;
}

.site-logo--footer .site-logo__text {
  color: var(--te-footer-heading);
}

.footer-brand__tagline {
  margin-top: var(--te-space-2);
  font-size: var(--te-text-sm);
  line-height: 1.7;
  color: var(--te-footer-text);
}

.footer-brand__socials {
  display: flex;
  gap: 0.6rem;
  margin: var(--te-space-2) 0 0;
  padding: 0;
  list-style: none;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--te-footer-border);
  border-radius: var(--te-radius-pill);
  background-color: rgb(255 255 255 / 0.03);
  color: var(--te-footer-text);
  transition:
    color var(--te-duration) var(--te-ease),
    border-color var(--te-duration) var(--te-ease),
    transform var(--te-duration) var(--te-ease);
}

.social-btn:hover {
  color: var(--te-footer-link-hover);
  border-color: var(--te-footer-accent);
  transform: translateY(-2px);
}

/* --- Link columns ----------------------------------------------------- */

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--te-space-2);
  font-family: var(--te-font-body);
  font-size: var(--te-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--te-footer-heading);
}

/* Short gold rule trailing each heading. */
.footer-col__title::after {
  content: "";
  height: 1px;
  width: 2.25rem;
  background-image: linear-gradient(90deg, var(--te-footer-accent), transparent);
  opacity: 0.5;
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--te-text-sm);
  color: var(--te-footer-link);
  text-decoration: none;
  transition: color var(--te-duration) var(--te-ease);
}

/* An arrow that slides in from the left on hover, matching the React footer. */
.footer-col__list a::after {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  background-color: var(--te-footer-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity var(--te-duration) var(--te-ease),
    transform var(--te-duration) var(--te-ease);
}

.footer-col__list a:hover {
  color: var(--te-footer-link-hover);
}

.footer-col__list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* --- Contact column --------------------------------------------------- */

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--te-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--te-text-sm);
  line-height: 1.6;
}

.footer-contact__chip {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: var(--te-radius);
  background-color: var(--te-footer-chip-bg);
  color: var(--te-footer-accent);
}

.footer-contact__chip .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.footer-contact__item a {
  color: var(--te-footer-link);
  text-decoration: none;
  padding-top: 0.35rem;
  transition: color var(--te-duration) var(--te-ease);
}

.footer-contact__item a:hover {
  color: var(--te-footer-link-hover);
}

.footer-contact__address {
  padding-top: 0.35rem;
}

/* --- Bottom bar ------------------------------------------------------- */

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--te-space-2);
  margin-top: var(--te-space-4);
  padding-top: var(--te-space-3);
  border-top: 1px solid var(--te-footer-border);
  font-size: var(--te-text-xs);
  color: var(--te-footer-muted);
}

.site-footer__copy {
  margin: 0;
}

.legal-menu {
  display: flex;
  gap: var(--te-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-menu a {
  color: var(--te-footer-muted);
  text-decoration: none;
  transition: color var(--te-duration) var(--te-ease);
}

.legal-menu a:hover {
  color: var(--te-footer-link-hover);
}

/* --------------------------------------------------------------------------
   6b. Shared sections
   Reused across the home page and inner pages, so their styles are global
   (home.css only loads on the front page).
   -------------------------------------------------------------------------- */

/* Three-ring brand motif watermark. */
.te-ring-motif { display: block; overflow: visible; }

/* Eyebrow label and buttons, shared by the inner pages (About cluster). */
.ab-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--te-text-xs); font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--te-gold-deep);
}
.ab-eyebrow__line { width: 28px; height: 1px; background: currentColor; }
.ab-eyebrow--center { justify-content: center; letter-spacing: 0.35em; font-weight: 600; }
.ab-eyebrow--gold { color: var(--te-gold); }

.ab-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.75rem; border-radius: var(--te-radius);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: transform var(--te-duration) var(--te-ease), background-color var(--te-duration) var(--te-ease), color var(--te-duration) var(--te-ease);
}
.ab-btn .icon { width: 16px; height: 16px; }
.ab-btn--navy { background: var(--te-navy-deep); color: #fff; box-shadow: 0 12px 28px -14px rgb(169 130 46 / 0.7); }
.ab-btn--navy:hover { transform: translateY(-2px); color: #fff; }
.ab-btn--ghost { color: var(--te-navy-deep); background: rgb(255 255 255 / 0.65); border: 1.5px solid var(--te-gold-deep); }
.ab-btn--ghost:hover { background: #fff; color: var(--te-navy-deep); }

/* Closing testimonial CTA (TestimonialCTA). */
.tcta { padding: 6rem 0; background: var(--te-canvas); }
@media (min-width: 768px) { .tcta { padding: 8rem 0; } }
.tcta__panel {
  position: relative; overflow: hidden;
  max-width: 64rem; margin-inline: auto;
  padding: 2.5rem 1.5rem; text-align: center;
  border-radius: var(--te-radius-2xl);
  background: linear-gradient(160deg, var(--te-navy), var(--te-navy-deep));
}
@media (min-width: 768px) { .tcta__panel { padding: 4rem; } }
.tcta__motif { position: absolute; top: -2.5rem; left: -2.5rem; opacity: 0.2; }
.tcta__quote { position: relative; display: inline-flex; color: var(--te-gold); }
.tcta__quote .icon { width: 30px; height: 30px; }
.tcta__text { position: relative; margin: 1.5rem auto 0; max-width: 42rem; font-family: var(--te-font-display); font-size: 1.5rem; line-height: 1.35; font-style: italic; font-weight: 500; color: #fff; }
@media (min-width: 768px) { .tcta__text { font-size: 1.875rem; } }
.tcta__attrib { position: relative; margin: 1.25rem 0 0; font-size: 0.875rem; color: var(--te-silver-soft); }
.tcta__action { position: relative; margin-top: 2.5rem; display: flex; justify-content: center; }
.tcta__btn { padding: 1rem 2rem; border-radius: var(--te-radius-pill); font-weight: 600; text-decoration: none; background: var(--te-gold); color: var(--te-navy-deep); transition: transform 0.3s var(--te-ease); }
.tcta__btn:hover { transform: translateY(-2px); color: var(--te-navy-deep); }

/* --------------------------------------------------------------------------
   7. Accessibility utilities
   -------------------------------------------------------------------------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  clip-path: none;
  background: var(--te-navy);
  color: #fff;
  border-radius: var(--te-radius-sm);
}
