/* ========================================
   SHARED CSS - Twenty-Six Systems
   ======================================== */

/* ── ROOT VARIABLES ── */
:root {
  /* ── BREAKPOINTS (Mobile-First) ── */
  --bp-sm:      640px;   /* Small screens: phones, landscape */
  --bp-md:      900px;   /* Medium screens: tablets, small laptops */
  --bp-lg:      1200px;  /* Large screens: desktops */

  /* ── COLORS ── */
  --navy:       #0d1c30;
  --navy-mid:   #142844;
  --navy-light: #1d3456;
  --gold:       #c8a96e;
  --gold-light: #dfc08a;
  --gold-pale:  #e0c99a;
  --gold-dim:   rgba(200,169,110,0.15);
  --white:      #f5f2ec;
  --white-85:   rgba(255,255,255,0.88);
  --white-dim:  rgba(245,242,236,0.82);
  --white-faint: rgba(245,242,236,0.10);
  --white-60:   rgba(255,255,255,0.65);
  --white-30:   rgba(255,255,255,0.35);
  --white-10:   rgba(255,255,255,0.10);

  /* ── TYPOGRAPHY ── */
  --serif:      'Sora', Georgia, serif;
  --sans:       'DM Sans', sans-serif;
  --condensed:  'Barlow Condensed', sans-serif;
}

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

html {
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(13, 28, 48, 0.97);
  will-change: transform;
  border-bottom: 1px solid rgba(200, 169, 110, 0.14);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

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

.nav-links {
  display: none;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 0.4rem 1.1rem;
  font-size: 0.73rem !important;
  letter-spacing: 0.12em;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: 0.3s;
}

/* ── SECTIONS ── */
section {
  padding: 40px 5vw;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-label span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.section-label-line {
  width: 30px;
  height: 1px;
  background: var(--gold);
}

/* ── HEADINGS ── */
h1 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--gold-light);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-tertiary {
  background: transparent;
  color: var(--gold);
  padding: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: none;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  display: inline;
}

.btn-tertiary::after {
  content: ' →';
}

.btn-tertiary:hover {
  color: var(--gold-light);
}

/* ── FOOTER ── */
footer {
  padding: 2.5rem 5vw;
  border-top: 1px solid rgba(200, 169, 110, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 236, 0.35);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245, 242, 236, 0.25);
  letter-spacing: 0.05em;
}

.footer-logo img {
  height: 28px;
  opacity: 0.5;
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ── */
/* Mobile menu open state (visible on all breakpoints) */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy-mid);
  padding: 2rem 5vw;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

/* Tablet and below: shrink the nav logo so it does not overlap the hamburger */
@media (max-width: 1023px) {
  .nav-logo img { height: 36px !important; }
}

/* Desktop only: show inline nav-links, hide hamburger */
@media (min-width: 1024px) {
  .nav-links {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
  }

  .hamburger {
    display: none;
  }
}

/* ── REVIEW ADDITIONS ── */

/* Paper section treatment */
.section-paper {
  background: #eee7d6 !important;
  color: #0d1c30 !important;
}
.section-paper h1,
.section-paper h2,
.section-paper h3,
.section-paper h4 { color: #162842 !important; }
.section-paper p,
.section-paper li { color: #3a4558 !important; }
.section-paper em { color: #9a7d3a !important; font-style: italic; }
.section-paper .section-label span { color: #9a7d3a !important; }
.section-paper .section-label-line { background: rgba(13,28,48,0.25) !important; }
.section-paper .gold { color: #9a7d3a !important; }

/* Focus states */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Paragraph readability lift */
p { color: rgba(245,242,236,0.82); }
.section-paper p { color: #3a4558 !important; }

/* Post-diagnostic CTA block */
.postdiag-cta {
  margin: 40px 0 48px;
  padding: 40px 40px 36px;
  border: 0.5px solid rgba(200,169,110,0.35);
  background: linear-gradient(180deg, rgba(200,169,110,0.06), rgba(200,169,110,0.02));
}
.postdiag-cta .pd-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}
.postdiag-cta .pd-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 24px;
  max-width: 520px;
}
.postdiag-cta .pd-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.postdiag-cta .pd-secondary {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.postdiag-cta .pd-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
.postdiag-cta .pd-meta {
  font-size: 0.78rem;
  color: var(--white-60);
  line-height: 1.6;
  font-style: italic;
  font-family: var(--sans);
}

/* Reusable footer CTA block */
.footer-cta-block {
  padding: 60px 5vw;
  border-top: 0.5px solid rgba(200,169,110,0.18);
  text-align: center;
}
.footer-cta-block .fc-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-cta-block .fc-headline {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.footer-cta-block .fc-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.footer-cta-block .fc-secondary {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.footer-cta-block .fc-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contact page — two-column layout */
.contact-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1000px;
}
@media (min-width: 900px) {
  .contact-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}
.contact-channel-primary {
  display: block;
  padding: 28px 28px 24px;
  border: 1px solid rgba(200,169,110,0.45);
  background: #ffffff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 16px;
}
.contact-channel-primary:hover { background: rgba(22,40,66,0.04); }
.contact-channel-primary .cc-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a7d3a;
  margin-bottom: 10px;
  font-weight: 500;
  display: block;
}
.contact-channel-primary .cc-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: #162842;
  line-height: 1.3;
}
.contact-response {
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(22,40,66,0.55);
  font-style: italic;
  font-family: var(--sans);
  line-height: 1.6;
}
.what-happens-next {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 0.5px solid rgba(22,40,66,0.1);
}
.what-happens-next .whn-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a7d3a;
  margin-bottom: 20px;
  font-weight: 500;
}
.whn-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: whn;
  list-style: none;
  padding: 0;
}
.whn-steps li {
  counter-increment: whn;
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: #3a4558;
  line-height: 1.65;
}
.whn-steps li::before {
  content: "0" counter(whn);
  font-family: var(--serif);
  font-size: 0.95rem;
  color: #9a7d3a;
  font-weight: 300;
  flex-shrink: 0;
  width: 28px;
}

/* Modules page — Request pill to text link */
.mod-request-link {
  color: #9a7d3a;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  display: inline-block;
  margin-top: 12px;
}
.mod-request-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Diagnostic programme block hidden by default */
.programme-diagnostic-block { display: none; }
.programme-diagnostic-block.open { display: block; }
.programme-toggle-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-block;
  margin-top: 20px;
}
.programme-toggle-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* CTA minimum height */
.btn-primary, .btn-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* ── R
/* ── Accessibility: respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
  canvas { display: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* Cream / paper section utility class */
.cream {
  background: #eee7d6;
}
/* Typography on cream */
.section-paper h1, .section-paper h2, .section-paper h3, .section-paper h4,
.cream h1, .cream h2, .cream h3, .cream h4 { color: #162842 !important; }
.section-paper p, .section-paper li,
.cream p, .cream li { color: #3a4558 !important; }
.section-paper em, .cream em { color: #9a7d3a !important; font-style: italic; }
.section-paper .section-label span, .cream .section-label span { color: #9a7d3a !important; }
.section-paper .section-label-line, .cream .section-label-line { background: rgba(13,28,48,0.25) !important; }
.section-paper .gold, .cream .gold { color: #9a7d3a !important; }
/* Links on cream */
.cream a { color: #162842; }
.cream a:hover { color: #9a7d3a; }
.cream a[style*="--gold"], .cream a.gold-link { color: #9a7d3a !important; }
/* Secondary button on cream */
.cream .btn-secondary {
  color: #162842 !important;
  border-color: rgba(22,40,66,0.35) !important;
}
.cream .btn-secondary:hover { border-color: #162842 !important; }
/* Eyebrows / meta on cream */
.cream .fc-eyebrow, .cream .pd-eyebrow, .cream .whn-eyebrow,
.cream .selector-track-text, .cream .stepper-label,
.cream .programme-block-tag, .cream .selector-tag { color: #9a7d3a !important; }
/* Divider lines on cream */
.cream .selector-track-line, .cream .section-label-line {
  background: rgba(22,40,66,0.25) !important;
}

/* ── ACCESSIBILITY ── */
*:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; 