/* ============================================================
   NODUS DESIGN SYSTEM
   thenodus.uk
   ============================================================ */

/* ------------------------------------------------------------
   GOOGLE FONTS
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Mono:wght@400&family=DM+Sans:wght@300;400;500&display=swap');


/* ------------------------------------------------------------
   DESIGN TOKENS — CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Brand colours */
  --mocha:          #4E4034;
  --mocha-deep:     #3A3027;
  --honey:          #F6EAD4;
  --honey-soft:     #FBF4E5;
  --oat:            #DCD4C1;
  --oat-deep:       #C4BCA8;
  --gold:           #C4A96D;
  --ink:            #1C1C1C;
  --text-body:      #2D2620;
  --text-muted:     #5F564D;
  --text-light:     #8C8278;
  --olive:          #5C7456;
  --dust-rose:      #D8B7B0;
  --midnight:       #1A1A2E;
  --surface-card:   #FFFFFF;

  /* Derived / semantic */
  --bg-page:        var(--honey);
  --bg-section-alt: var(--honey-soft);
  --border-default: var(--oat);
  --border-strong:  var(--oat-deep);

  /* Typography families */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --font-data:    'DM Mono', 'Courier New', monospace;

  /* Typography scale */
  --text-hero:      clamp(48px, 7vw, 72px);
  --text-display:   clamp(40px, 5vw, 56px);
  --text-headline:  clamp(32px, 4vw, 48px);
  --text-section:   clamp(28px, 3.5vw, 40px);
  --text-subhead:   clamp(18px, 2vw, 22px);
  --text-body:      16px;
  --text-small:     14px;
  --text-caption:   11px;
  --text-data-lg:   18px;
  --text-data:      14px;

  /* Line heights */
  --lh-display:  1.08;
  --lh-headline: 1.15;
  --lh-subhead:  1.3;
  --lh-body:     1.75;
  --lh-tight:    1.2;

  /* Letter spacing */
  --ls-display:  -0.01em;
  --ls-caption:  0.12em;
  --ls-logo:     0.08em;

  /* Spacing (8px base unit) */
  --sp-1:   8px;
  --sp-2:   16px;
  --sp-3:   24px;
  --sp-4:   32px;
  --sp-5:   40px;
  --sp-6:   48px;
  --sp-8:   64px;
  --sp-12:  96px;
  --sp-16:  128px;

  /* Section rhythm */
  --section-py:       var(--sp-12);
  --section-py-mob:   var(--sp-8);
  --content-max:      1200px;
  --card-pad:         var(--sp-4);
  --input-pad:        14px 18px;

  /* Border radii */
  --radius-card:    18px;
  --radius-card-sm: 12px;
  --radius-pill:    100px;
  --radius-sm:      8px;

  /* Shadows (warm-tinted only) */
  --shadow-card:    0 16px 48px rgba(78, 64, 52, 0.12);
  --shadow-card-sm: 0 8px 24px rgba(78, 64, 52, 0.09);
  --shadow-card-lg: 0 24px 72px rgba(78, 64, 52, 0.16);
  --shadow-nav:     0 4px 24px rgba(78, 64, 52, 0.10);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.64, 0, 0.78, 0);
  --dur-fast: 160ms;
  --dur-med:  280ms;
  --dur-slow: 480ms;

  /* Nav */
  --nav-height: 72px;
  --nav-bg:     rgba(251, 244, 229, 0.94);
  --nav-blur:   16px;
}


/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--honey);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Anchor scroll offset */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}


/* ------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.container--narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.container--wide {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background-color: var(--honey-soft);
}

.section--dark {
  background-color: var(--midnight);
  color: var(--honey);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

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

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }

.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.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;
}


/* ------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ------------------------------------------------------------ */

.type-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--mocha);
}

.type-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--mocha);
}

.type-headline {
  font-family: var(--font-display);
  font-size: var(--text-headline);
  font-weight: 400;
  line-height: var(--lh-headline);
  color: var(--mocha);
}

.type-section {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 400;
  line-height: var(--lh-headline);
  color: var(--mocha);
}

.type-subhead {
  font-family: var(--font-ui);
  font-size: var(--text-subhead);
  font-weight: 500;
  line-height: var(--lh-subhead);
  color: var(--mocha);
}

.type-body {
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text-body);
}

.type-caption {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--text-muted);
}

.type-data {
  font-family: var(--font-data);
  font-size: var(--text-data);
  font-weight: 400;
  color: var(--text-body);
}

.type-data-lg {
  font-family: var(--font-data);
  font-size: var(--text-data-lg);
  font-weight: 400;
  color: var(--mocha);
}

.type-italic {
  font-style: italic;
  font-weight: 300;
}

/* Colour modifiers */
.color-mocha     { color: var(--mocha); }
.color-gold      { color: var(--gold); }
.color-muted     { color: var(--text-muted); }
.color-light     { color: var(--text-light); }
.color-honey     { color: var(--honey); }
.color-olive     { color: var(--olive); }
.color-dust-rose { color: var(--dust-rose); }
.color-ink       { color: var(--ink); }


/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color     var(--dur-fast) var(--ease-out),
    color            var(--dur-fast) var(--ease-out),
    box-shadow       var(--dur-fast) var(--ease-out),
    transform        var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

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

/* Primary — gold */
.btn--primary {
  background-color: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: #B89657;
  border-color: #B89657;
  box-shadow: 0 6px 20px rgba(196, 169, 109, 0.35);
}

/* Secondary — outline mocha */
.btn--secondary {
  background-color: transparent;
  color: var(--mocha);
  border-color: var(--mocha);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--mocha);
  color: var(--honey);
}

/* Ghost — text only */
.btn--ghost {
  background-color: transparent;
  color: var(--mocha);
  border-color: transparent;
  padding-inline: 4px;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--gold);
}

/* Dark surface variant */
.btn--dark-outline {
  background-color: transparent;
  color: var(--honey);
  border-color: var(--oat);
}

.btn--dark-outline:hover,
.btn--dark-outline:focus-visible {
  background-color: var(--honey);
  color: var(--mocha);
  border-color: var(--honey);
}

/* Size modifiers */
.btn--sm {
  font-size: var(--text-small);
  padding: 10px 20px;
}

.btn--lg {
  font-size: 17px;
  padding: 18px 40px;
}


/* ------------------------------------------------------------
   CARDS
   ------------------------------------------------------------ */
.card {
  background-color: var(--surface-card);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
  box-shadow: var(--shadow-card);
}

.card--warm {
  background-color: var(--honey-soft);
  border: 1px solid var(--oat);
  box-shadow: none;
}

.card--data {
  background-color: var(--surface-card);
  border-radius: var(--radius-card-sm);
  padding: var(--sp-3);
  border: 1px solid var(--oat);
  box-shadow: var(--shadow-card-sm);
}

.card--dark {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
}


/* ------------------------------------------------------------
   BADGES & PILLS
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.badge--gold  { background-color: rgba(196, 169, 109, 0.16); color: #9A7D3C; }
.badge--olive { background-color: rgba(92, 116, 86, 0.14);  color: var(--olive); }
.badge--rose  { background-color: rgba(216, 183, 176, 0.25); color: #9A6E67; }
.badge--mocha { background-color: rgba(78, 64, 52, 0.10);   color: var(--mocha); }

.badge--dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   FORM ELEMENTS
   ------------------------------------------------------------ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.form-label {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-body);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--input-pad);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  color: var(--ink);
  background-color: var(--surface-card);
  border: 1.5px solid var(--oat-deep);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow   var(--dur-fast) var(--ease-out);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 169, 109, 0.20);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Validation error state — warm amber, never alarming red */
.field--error .form-input,
.field--error .form-select,
.field--error .form-textarea,
.form-input.field--error,
.form-select.field--error,
.form-textarea.field--error {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 169, 109, 0.20);
}

.field--error-msg {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}


/* ------------------------------------------------------------
   DIVIDERS & THREAD MOTIF
   ------------------------------------------------------------ */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--oat);
  border: none;
}

.divider--dark {
  background-color: rgba(255, 255, 255, 0.10);
}

/*
 * Thread: a horizontal line connecting two node circles.
 * Place .thread__node · .thread__line · .thread__node inside .thread.
 * Add --dark or --gold modifiers on .thread for colour variants.
 */
.thread {
  display: flex;
  align-items: center;
  width: 100%;
}

.thread__line {
  flex: 1;
  height: 1px;
  background-color: var(--oat);
}

.thread__node {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--oat-deep);
  flex-shrink: 0;
}

.thread--dark .thread__line  { background-color: rgba(255, 255, 255, 0.15); }
.thread--dark .thread__node  { background-color: rgba(255, 255, 255, 0.30); }
.thread--gold .thread__line  { background-color: rgba(196, 169, 109, 0.30); }
.thread--gold .thread__node  { background-color: var(--gold); }

/* Short centred thread used as a section accent above headlines */
.thread-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  margin-inline: auto;
}

.thread-accent .thread__line { flex: 1; }


/* ------------------------------------------------------------
   SECTION LABEL (eyebrow above headlines)
   ------------------------------------------------------------ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: var(--oat-deep);
}

.section-label--gold {
  color: var(--gold);
}

.section-label--gold::before,
.section-label--gold::after {
  background-color: var(--gold);
}

.section-label--light {
  color: rgba(246, 234, 212, 0.55);
}

.section-label--light::before,
.section-label--light::after {
  background-color: rgba(255, 255, 255, 0.20);
}


/* ------------------------------------------------------------
   STATUS INDICATORS
   ------------------------------------------------------------ */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 500;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status--confirmed { color: var(--olive); }
.status--confirmed .status__dot { background-color: var(--olive); }

.status--pending { color: var(--gold); }
.status--pending .status__dot { background-color: var(--gold); }

.status--cancelled { color: var(--dust-rose); }
.status--cancelled .status__dot { background-color: var(--dust-rose); }


/* ------------------------------------------------------------
   ICON BASE STYLES
   All icons are wireframe SVGs — stroke only, no fill.
   ------------------------------------------------------------ */
.icon {
  display: inline-block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm { width: 16px; height: 16px; }
.icon--md { width: 20px; height: 20px; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 32px; height: 32px; }


/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  border-bottom: 1px solid var(--oat);
  transition:
    box-shadow   var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
}

.nav--scrolled {
  box-shadow: var(--shadow-nav);
  border-bottom-color: var(--oat-deep);
}

.nav__inner {
  height: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

/* Wordmark logo */
.nav__logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: var(--ls-logo);
  color: var(--mocha);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__logo:hover {
  color: var(--mocha-deep);
}

/* Centre link list */
.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  list-style: none;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition:
    color            var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--mocha);
  background-color: rgba(78, 64, 52, 0.06);
}

.nav__link--active {
  color: var(--mocha);
  font-weight: 500;
}

/* Right actions */
.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
}

.nav__login {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 4px;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__login:hover,
.nav__login:focus-visible {
  color: var(--mocha);
}

/* Hamburger (mobile only) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.nav__hamburger:hover {
  background-color: rgba(78, 64, 52, 0.06);
}

.nav__hamburger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--mocha);
  border-radius: 2px;
  transition:
    transform var(--dur-med) var(--ease-out),
    opacity   var(--dur-med) var(--ease-out);
  transform-origin: center;
}

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

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

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

/* Mobile full-screen overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--honey);
  display: flex;
  flex-direction: column;
  padding: var(--sp-4);
  padding-top: calc(var(--nav-height) + var(--sp-4));
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity   var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}

.nav__overlay--open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.nav__overlay-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin-bottom: var(--sp-4);
}

.nav__overlay-link {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 400;
  color: var(--mocha);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--oat);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__overlay-link:hover,
.nav__overlay-link:focus-visible {
  color: var(--gold);
}

.nav__overlay-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.nav__overlay-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 15px;
}

.nav__overlay-login {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  padding: 12px;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__overlay-login:hover {
  color: var(--mocha);
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  background-color: var(--midnight);
  color: var(--honey);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-6);
}

.footer__thread {
  margin-bottom: var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

/* Brand column */
.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: var(--ls-logo);
  color: var(--honey);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--sp-2);
  line-height: 1;
}

.footer__tagline {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  color: rgba(246, 234, 212, 0.55);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
  max-width: 220px;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(220, 212, 193, 0.22);
  color: var(--oat);
  text-decoration: none;
  transition:
    border-color     var(--dur-fast) var(--ease-out),
    color            var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  border-color: var(--honey);
  color: var(--honey);
  background-color: rgba(246, 234, 212, 0.08);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Link columns */
.footer__col-title {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: rgba(246, 234, 212, 0.40);
  margin-bottom: var(--sp-3);
  line-height: 1;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
}

.footer__col-link {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 400;
  color: rgba(246, 234, 212, 0.62);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
  line-height: 1.4;
}

.footer__col-link:hover,
.footer__col-link:focus-visible {
  color: var(--honey);
}

/* Bottom bar */
.footer__bottom {
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer__legal {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(246, 234, 212, 0.35);
  line-height: 1.5;
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  list-style: none;
}

.footer__legal-link {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(246, 234, 212, 0.35);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__legal-link:hover {
  color: rgba(246, 234, 212, 0.70);
}


/* ------------------------------------------------------------
   SKIP LINK (accessibility)
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-2);
  z-index: 9999;
  padding: 10px 20px;
  background-color: var(--gold);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 500;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

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


/* ------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  :root {
    --section-py: var(--sp-8);
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  /* Collapse centre links, show hamburger */
  .nav__links { display: none; }

  .nav__hamburger { display: flex; }

  .nav__inner {
    justify-content: space-between;
  }

  /* Hide desktop-only nav items */
  .nav__actions .btn--primary { display: none; }
  .nav__actions .nav__login   { display: none; }
}

/* Mobile ≤ 640px */
@media (max-width: 640px) {
  :root {
    --card-pad: var(--sp-3);
  }

  .container,
  .container--narrow,
  .container--wide {
    padding-inline: var(--sp-2);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .footer__tagline { max-width: none; }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal-links {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .btn--lg {
    padding: 16px 32px;
    font-size: var(--text-body);
  }
}


/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ------------------------------------------------------------
   SHARED KEYFRAMES
   Common animations referenced from page-level CSS.
   ------------------------------------------------------------ */
@keyframes nodus-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nodus-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

@keyframes nodus-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}


/* ------------------------------------------------------------
   DARK SURFACE UTILITIES
   Use on midnight-background sections / pages.
   ------------------------------------------------------------ */

/* Body override for full-dark pages */
.body--midnight {
  background-color: var(--midnight);
}

/* Full-dark section block */
.section--midnight {
  background-color: var(--midnight);
  color: var(--honey-soft);
  padding-block: var(--section-py);
}

/* Section label on dark surfaces — gold tint */
.section-label--dark {
  color: rgba(196, 169, 109, 0.60);
}

.section-label--dark::before,
.section-label--dark::after {
  background-color: rgba(196, 169, 109, 0.25);
}

/* Dark surface form inputs */
.form-input--dark,
.form-select--dark {
  color: var(--honey-soft);
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(196, 169, 109, 0.18);
}

.form-input--dark::placeholder {
  color: rgba(248, 245, 240, 0.25);
}

.form-input--dark:focus,
.form-select--dark:focus {
  border-color: rgba(196, 169, 109, 0.50);
  background-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 0 3px rgba(196, 169, 109, 0.08);
}

/* Google Fonts note:
   The @import at the top of this file loads fonts via CSS,
   which is render-blocking. In production, replace with:
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?...&display=swap">
   in <head> before this stylesheet link, and remove the @import. */
