/* ==========================================================================
   BowleyFI Advisory Limited — Stylesheet
   Structure: Variables > Base/Reset > Layout > Components > Utilities
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   All colours live here. Edit this block to re-theme the whole site.
   ========================================================================== */

:root {
  /* --- Brand colours ------------------------------------------------- */
  --colour-primary: #286CBB;       /* Main brand blue — buttons, links, nav highlights */
  --colour-primary-dark: #1B355A;  /* Deep navy — header/footer background, dark headings */
  --colour-accent: #42B0F4;        /* Bright sky blue — hover states, highlights, small accents */
  --colour-bg: #E3EAF0;            /* Pale blue-grey — page/section background tint */

  /* --- Neutral colours (supporting the brand palette above) ----------- */
  --colour-surface: #FFFFFF;       /* White — card and content surfaces */
  --colour-text: #1F2937;          /* Main body text colour (near-black, easier to read than navy) */
  --colour-muted: #5B6B7A;         /* Secondary text — captions, helper text, meta info */
  --colour-border: #D7E1EA;        /* Dividers, input borders, card outlines */

  /* --- Layout ---------------------------------------------------------- */
  --max-width: 1440px;
  --page-padding: 1.5rem;
  --gap-lg: 2rem;
  --gap-md: 1.25rem;
  --gap-sm: 0.75rem;
  --gap-xsm: 0.45rem;
  --radius: 1px;

  /* --- Type -------------------------------------------------------------
     Body font is Roboto (Google Fonts, loaded via <link> in each page's
     <head>). The system stack after it is just a fallback if it fails. */
  --font-base: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Cal Sans (Google Fonts) — used for headings only, loaded via <link>
     in each page's <head>. Falls back to the system stack if it fails. */
  --font-heading: "Cal Sans", var(--font-base);

  /* --- Motion ------------------------------------------------------------ */
  --transition: 0.2s ease;
}

@media (min-width: 900px) {
  :root {
    --page-padding: 2.5rem;
  }
}


/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--colour-text);
  background: var(--colour-surface);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  color: var(--colour-primary-dark);
  line-height: 1.25;
  letter-spacing: .3px;
  font-family: var(--font-heading);
  font-weight: 400; /* Cal Sans ships in a single (semibold-looking) weight */
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h3 { font-size: 1.25rem; }

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

a {
  color: var(--colour-primary);
  text-decoration: none;
}

a:hover {
  color: var(--colour-primary);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Consistent, visible focus state for keyboard users everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--colour-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — hidden until focused */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--colour-primary-dark);
  color: #fff;
  padding: 0.6em 1em;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

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

.site-main {
  display: block;
}

section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

section + section {
  border-top: 1px solid var(--colour-border);
}

.section-bg {
  background: var(--colour-bg);
}

.section-dark {
  background: var(--colour-primary-dark);
  color: #fff;
}

.section-mid {
  background: var(--colour-primary);
  color: #fff;
}

.section-accent {
  background: var(--colour-accent);
  color: #fff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--gap-lg);
}

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

/* --- 6-column responsive grid ------------------------------------------- */

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-lg);
}

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* Tablet: collapse to a 2-per-row rhythm */
@media (max-width: 900px) {
  .grid-6 { gap: var(--gap-md); }
  .span-2,
  .span-3,
  .span-4 { grid-column: span 3; }
}

/* Mobile: single column */
@media (max-width: 600px) {
  .span-1,
  .span-2,
  .span-3,
  .span-4 { grid-column: span 6; }
}

/* --- Simple two-column layout used on About/Contact --------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

@media (max-width: 700px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-top {
  align-items: start;
}

/* --- Narrow centred column, used for bio/prose-style copy --------------- */

.prose {
  max-width: 700px;
  margin-inline: auto;
}

.prose p {
  color: var(--colour-text);
}

/* Wider narrow column — for grids with more than 2 columns of content
   (e.g. .grid-3), where the standard 700px .prose is too tight. */
.prose-wide {
  max-width: 960px;
  margin-inline: auto;
}


/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

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

.site-header {
  border-bottom: 1px solid var(--colour-border);
  background: var(--colour-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 34px;
  width: auto;
}

/* --- Main nav --------------------------------------------------------------- */

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: var(--gap-lg);
}

.nav-menu a {
  color: var(--colour-primary-dark);
  font-weight: 600;
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  /* color: var(--colour-primary); */
  border-bottom-color: var(--colour-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  background: var(--colour-surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--colour-primary-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--colour-surface);
    border-bottom: 1px solid var(--colour-border);
    box-shadow: 0 8px 16px rgba(27, 53, 90, 0.08);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    border-top: 1px solid var(--colour-border);
  }

  .nav-menu a {
    display: block;
    padding: 0.9em var(--page-padding);
    border-bottom: none;
  }
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 0.75em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--colour-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--colour-accent);
  color: var(--colour-primary-dark);
}

.hero-actions .btn-primary {
  background: var(--colour-accent);
  color: #fff;
}

.hero-actions .btn-primary:hover {
  background: var(--colour-primary-dark);

}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-outline:hover {
  border-color: var(--colour-accent);
  color: var(--colour-accent);
}

/* --- Download button -----------------------------------------------------
   Smaller variant with an icon inline with the label, used for white
   paper / document downloads. Combine with .btn (and .btn-outline or
   .btn-primary) e.g. class="btn btn-outline btn-download". */

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background-color: var(--colour-surface);
  padding: 0.5em 1.1em;
  font-size: 0.875rem;
}

.btn-download:hover {
  border-color: var(--colour-primary);
  color: var(--colour-primary);
}

.btn-download svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Eyebrow + dash accent -------------------------------------------------
   Small brand marks used above headings, echoing the BowleyFI wordmark
   treatment: an uppercase kicker and a short accent-coloured dash. */

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--colour-primary);
  margin-bottom: 0.6em;
}

.dash {
  width: 40px;
  height: 6px;
  background: var(--colour-accent);
  margin-block: 1.5rem;
}

.dash.center {
  margin-inline: auto;
}

/* --- Page hero -------------------------------------------------------------
   Centred, text-led intro used at the top of every page. No photography —
   the accent dash and generous whitespace carry the brand instead. */

.page-hero {
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero h1 {
    max-width: 640px;
  margin-inline: auto;
}

.page-hero .lead {
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--colour-muted);
}

.hero-actions {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--gap-lg);
}

/* --- Photo hero (Home page only) -------------------------------------------
   Adds a full-bleed background photo with a navy tint overlay so the
   .page-hero text stays legible. Combine with .page-hero, e.g.
   class="page-hero hero-photo". */

.hero-photo {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  background-image: url('images/karen-uppal-TLjNPAz6d4g-unsplash-small.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  /* rgba equivalents of --colour-primary-dark, top-to-bottom fade */
  background: linear-gradient(to bottom, rgba(27, 53, 90, 0.8), rgba(27, 53, 90, 0.4));
}

.hero-photo .container {
  position: relative;
  z-index: 1;
}

.hero-photo .eyebrow {
  color: var(--colour-accent);
}

.hero-photo h1 {
  color: #fff;
}

.hero-photo .lead {
  color: var(--colour-bg);
}

/* --- Cards ------------------------------------------------------------- */

.card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

/* Same narrow column as .card-stack, but 2 cards per row */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

@media (max-width: 500px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Same narrow column as .card-stack, but 3 cards per row */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

@media (max-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--colour-surface);
  /* border: 1px solid var(--colour-border); */
  border-radius: var(--radius);
  padding: var(--gap-lg);
  height: 100%;
}

/* Cards that are also links (e.g. Home page panels linking to other
   pages). Scoped to a.card so it doesn't affect plain <div class="card">
   cards elsewhere, like the Advisory service cards. */
a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

a.card:hover {
  box-shadow: 0 8px 20px rgba(27, 53, 90, 0.15);
  transform: translateY(-2px);
}

a.card:hover .card-icon {
  color: var(--colour-primary);
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--colour-accent);
  margin-bottom: var(--gap-sm);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  color: var(--colour-muted);
}

.card-list {
  color: var(--colour-muted);
  list-style: square;
  padding-left: 1em;
}

.card-list li::marker {
  color: var(--colour-primary);
}

.card-list li {
  margin-bottom: 0.5em;
}

.card-list li:last-child {
  margin-bottom: 0;
}

/* --- Accent card ------------------------------------------------------
   A card with a navy "spine" and accent-blue chip on the left edge,
   echoing a title-slide treatment. White surface, opt-in via card-accent
   so it doesn't change the plain .card used elsewhere. */

.card-accent {
  position: relative;
  border-radius: 0;
  padding-left: calc(var(--gap-sm) + 16px);
}

.card-accent::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 0;
  top: 0;
  height: 10px;
  background: var(--colour-primary-dark);
}

.card-accent::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--colour-primary);
}

.card-accent h3 {
  color: var(--colour-primary);
}

/* --- Stats strip --------------------------------------------------------- */

.stat .stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--colour-bg);
  font-family: var(--font-heading);
}

.stat .stat-label {
  color: var(--colour-primary-dark);
  font-weight: 600;
}

/* --- Insight / white paper cards ------------------------------------------ */

.insight-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.insight-card {
  background: var(--colour-bg);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: row;
}

.insight-card img {
  width: 160px;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--colour-bg);
}

.insight-body {
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-meta {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--colour-primary);
  margin-bottom: 0.5em;
}

.insight-body h3 {
  margin-bottom: 0.4em;
}

.insight-body p {
  color: var(--colour-muted);
  margin-bottom: .1em;
}

.insight-body .btn {
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--gap-xsm);
}

.insight-embed {
  margin-top: var(--gap-sm);
}

.insight-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* --- Newsletter signup ------------------------------------------------- */

.newsletter-form {
  display: flex;
  gap: var(--gap-sm);
  max-width: 460px;
  margin: 0 auto var(--gap-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.7em 0.9em;
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--colour-text);
  background: var(--colour-surface);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--colour-primary);
}

/* --- Press & events list ------------------------------------------------ */

.press-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
}

.press-filters:empty {
  display: none;
}

.press-filter {
  font-size: 0.9rem;
}

.press-filter-select {
  padding: 0.5em 2.2em 0.5em 0.8em;
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--colour-text);
  background-color: var(--colour-surface);
  min-width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23286CBB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 1.1em;
}

.press-filter-select:focus {
  border-color: var(--colour-primary);
}

.press-list li {
  padding-block: var(--gap-md);
  border-bottom: 1px solid var(--colour-border);
}

.press-list h3 {
  position: relative;
  margin-bottom: 0.2em;
  font-size: 1.1rem;
  color: var(--colour-primary);
}

.press-list h3 a {
  color: inherit;
}

.press-list h3::before {
  content: "\2013";
  position: absolute;
  left: -0.9em;
  font-weight: 700;
  color: var(--colour-accent);
}

.press-meta {
  display: flex;
  align-items: center;
  gap: var(--gap-xsm);
  margin: 0.6em 0;
}

.press-date {
  color: var(--colour-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.press-divider {
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  background: var(--colour-accent);
}

.press-role {
  color: var(--colour-muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.press-quote {
  margin: var(--gap-md) 0 0;
  padding: 0.2em 0 0.2em var(--gap-md);
  border-left: 4px solid var(--colour-accent);
}

.press-quote p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--colour-text);
}

.press-images {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

.press-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: var(--colour-bg);
  cursor: zoom-in;
}

.press-images img:first-child {
  grid-row: 1 / span 2;
}

.press-images img:not(:first-child) {
  aspect-ratio: 3 / 2;
}

/* When there are 3 images, the two small stacked ones letterbox instead of
   cropping — a landscape photo there would otherwise get cut off tightly. */
.press-images img:first-child:nth-last-child(3) ~ img {
  object-fit: contain;
  background: transparent;
}

.press-images img:only-child {
  grid-column: 1 / -1;
  grid-row: auto;
  height: auto;
  aspect-ratio: 6 / 4;
}

/* Exactly 2 images: equal width and height side by side, instead of the
   big-plus-stacked treatment used when there are 3. */
.press-images:has(img:first-child:nth-last-child(2)) {
  grid-template-columns: 1fr 1fr;
}

.press-images img:first-child:nth-last-child(2),
.press-images img:first-child:nth-last-child(2) ~ img {
  grid-row: auto;
  aspect-ratio: 3 / 2;
}

@media (max-width: 500px) {
  .press-images {
    grid-template-columns: 1fr;
  }

  .press-images img:first-child {
    aspect-ratio: 6 / 4;
    grid-row: auto;
  }
}

/* --- Press gallery lightbox ---------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-lg);
  background: rgba(0, 0, 0, 0.85);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: var(--gap-md);
  right: var(--gap-md);
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-close:focus-visible {
  outline: none;
}

.lightbox-close:hover {
  color: var(--colour-accent);
}

/* --- Process steps -------------------------------------------------------- */

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--colour-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
}

/* --- Forms ----------------------------------------------------------------- */

.form-field {
  margin-bottom: var(--gap-md);
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4em;
  color: var(--colour-primary-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--colour-text);
  background: var(--colour-surface);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--colour-primary);
}

.form-note {
  max-width: 460px;
  margin-inline: auto;
  font-size: 0.85rem;
  color: var(--colour-muted);
}

.form-status {
  margin-top: var(--gap-md);
  padding: 0.8em 1em;
  border-radius: var(--radius);
  background: var(--colour-bg);
  color: var(--colour-primary-dark);
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* --- Contact info list ------------------------------------------------- */

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

@media (max-width: 500px) {
  .contact-list {
    grid-template-columns: 1fr;
  }
}

.contact-list div {
  background: var(--colour-bg);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  padding: var(--gap-lg);
}

.contact-list dt {
  font-weight: 700;
  color: var(--colour-primary-dark);
}

.contact-list dd {
  margin: 0.2em 0 0;
  color: var(--colour-muted);
}

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

.site-footer {
  background: var(--colour-primary-dark);
  color: var(--colour-bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap-lg);
  padding-block: var(--gap-lg);
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
  margin-bottom: var(--gap-sm);
}

.footer-inner h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8em;
}

.footer-inner a {
  color: var(--colour-bg);
}

.footer-inner a:hover {
  color: var(--colour-accent);
}

.footer-nav li {
  margin-bottom: 0.5em;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: var(--gap-md);
  font-size: 0.85rem;
  color: var(--colour-bg);
  opacity: 0.85;
  text-align: center;
}

.footer-legal p {
  margin-bottom: 0.3em;
}

.footer-legal a {
  color: var(--colour-bg);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--colour-accent);
}

.footer-social {
  display: flex;
  justify-content: center;
  margin-top: var(--gap-sm);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--colour-primary);
  color: #fff;
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--colour-accent);
  color: var(--colour-primary-dark);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   5. UTILITIES
   ========================================================================== */

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

.text-center { text-align: center; }
.text-muted { color: var(--colour-muted) !important; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.flex {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.flex-center {
  align-items: center;
}
