/* ==========================================================================
   STYLE.CSS — Shared design system (never changes per site)
   ========================================================================== */

/* --- Derived colors --- */
:root {
  --color-primary-dark: color-mix(in oklch, var(--color-primary), black 20%);
  --color-primary-light: color-mix(in oklch, var(--color-primary), white 85%);
  --color-accent-hover: color-mix(in oklch, var(--color-accent), black 15%);
  --color-text-body: color-mix(in oklch, var(--color-text) 85%, transparent);
  --color-text-muted: color-mix(in oklch, var(--color-text) 55%, transparent);
  --color-border: color-mix(in oklch, var(--color-text) 15%, transparent);
  --color-bg-inverted-muted: color-mix(in oklch, var(--color-bg) 70%, transparent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Container --- */
.container,
.section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   UTILITIES — Bootstrap 5.3 compatible grid, spacing, display, flex, text
   Breakpoints: sm 576px, md 768px, lg 992px, xl 1200px, xxl 1400px
   Spacing scale: 0=0, 1=0.25rem, 2=0.5rem, 3=1rem, 4=1.5rem, 5=3rem
   ========================================================================== */

/* --- Grid: Row --- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

/* Gutter modifiers */
.g-0 { margin-right: 0; margin-left: 0; row-gap: 0; }
.g-0 > * { padding-right: 0; padding-left: 0; }
.g-1 { margin-right: -0.125rem; margin-left: -0.125rem; row-gap: 0.25rem; }
.g-1 > * { padding-right: 0.125rem; padding-left: 0.125rem; }
.g-2 { margin-right: -0.25rem; margin-left: -0.25rem; row-gap: 0.5rem; }
.g-2 > * { padding-right: 0.25rem; padding-left: 0.25rem; }
.g-3 { margin-right: -0.5rem; margin-left: -0.5rem; row-gap: 1rem; }
.g-3 > * { padding-right: 0.5rem; padding-left: 0.5rem; }
.g-4 { margin-right: -0.75rem; margin-left: -0.75rem; row-gap: 1.5rem; }
.g-4 > * { padding-right: 0.75rem; padding-left: 0.75rem; }
.g-5 { margin-right: -1.5rem; margin-left: -1.5rem; row-gap: 3rem; }
.g-5 > * { padding-right: 1.5rem; padding-left: 1.5rem; }

/* --- Grid: Columns (base = mobile) --- */
.col    { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1  { flex: 0 0 auto; width:  8.3333%; }
.col-2  { flex: 0 0 auto; width: 16.6667%; }
.col-3  { flex: 0 0 auto; width: 25%; }
.col-4  { flex: 0 0 auto; width: 33.3333%; }
.col-5  { flex: 0 0 auto; width: 41.6667%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-7  { flex: 0 0 auto; width: 58.3333%; }
.col-8  { flex: 0 0 auto; width: 66.6667%; }
.col-9  { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.3333%; }
.col-11 { flex: 0 0 auto; width: 91.6667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* Offsets (base) */
.offset-1  { margin-left:  8.3333%; }
.offset-2  { margin-left: 16.6667%; }
.offset-3  { margin-left: 25%; }
.offset-4  { margin-left: 33.3333%; }
.offset-5  { margin-left: 41.6667%; }
.offset-6  { margin-left: 50%; }

/* --- Grid: sm (≥576px) --- */
@media (min-width: 576px) {
  .col-sm      { flex: 1 0 0%; }
  .col-sm-auto { flex: 0 0 auto; width: auto; }
  .col-sm-1    { flex: 0 0 auto; width:  8.3333%; }
  .col-sm-2    { flex: 0 0 auto; width: 16.6667%; }
  .col-sm-3    { flex: 0 0 auto; width: 25%; }
  .col-sm-4    { flex: 0 0 auto; width: 33.3333%; }
  .col-sm-5    { flex: 0 0 auto; width: 41.6667%; }
  .col-sm-6    { flex: 0 0 auto; width: 50%; }
  .col-sm-7    { flex: 0 0 auto; width: 58.3333%; }
  .col-sm-8    { flex: 0 0 auto; width: 66.6667%; }
  .col-sm-9    { flex: 0 0 auto; width: 75%; }
  .col-sm-10   { flex: 0 0 auto; width: 83.3333%; }
  .col-sm-11   { flex: 0 0 auto; width: 91.6667%; }
  .col-sm-12   { flex: 0 0 auto; width: 100%; }
  .offset-sm-0 { margin-left: 0; }
  .offset-sm-1 { margin-left:  8.3333%; }
  .offset-sm-2 { margin-left: 16.6667%; }
  .offset-sm-3 { margin-left: 25%; }
  .offset-sm-4 { margin-left: 33.3333%; }
  .offset-sm-5 { margin-left: 41.6667%; }
  .offset-sm-6 { margin-left: 50%; }
}

/* --- Grid: md (≥768px) --- */
@media (min-width: 768px) {
  .col-md      { flex: 1 0 0%; }
  .col-md-auto { flex: 0 0 auto; width: auto; }
  .col-md-1    { flex: 0 0 auto; width:  8.3333%; }
  .col-md-2    { flex: 0 0 auto; width: 16.6667%; }
  .col-md-3    { flex: 0 0 auto; width: 25%; }
  .col-md-4    { flex: 0 0 auto; width: 33.3333%; }
  .col-md-5    { flex: 0 0 auto; width: 41.6667%; }
  .col-md-6    { flex: 0 0 auto; width: 50%; }
  .col-md-7    { flex: 0 0 auto; width: 58.3333%; }
  .col-md-8    { flex: 0 0 auto; width: 66.6667%; }
  .col-md-9    { flex: 0 0 auto; width: 75%; }
  .col-md-10   { flex: 0 0 auto; width: 83.3333%; }
  .col-md-11   { flex: 0 0 auto; width: 91.6667%; }
  .col-md-12   { flex: 0 0 auto; width: 100%; }
  .offset-md-0 { margin-left: 0; }
  .offset-md-1 { margin-left:  8.3333%; }
  .offset-md-2 { margin-left: 16.6667%; }
  .offset-md-3 { margin-left: 25%; }
  .offset-md-4 { margin-left: 33.3333%; }
  .offset-md-5 { margin-left: 41.6667%; }
  .offset-md-6 { margin-left: 50%; }
}

/* --- Grid: lg (≥992px) --- */
@media (min-width: 992px) {
  .col-lg      { flex: 1 0 0%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; }
  .col-lg-1    { flex: 0 0 auto; width:  8.3333%; }
  .col-lg-2    { flex: 0 0 auto; width: 16.6667%; }
  .col-lg-3    { flex: 0 0 auto; width: 25%; }
  .col-lg-4    { flex: 0 0 auto; width: 33.3333%; }
  .col-lg-5    { flex: 0 0 auto; width: 41.6667%; }
  .col-lg-6    { flex: 0 0 auto; width: 50%; }
  .col-lg-7    { flex: 0 0 auto; width: 58.3333%; }
  .col-lg-8    { flex: 0 0 auto; width: 66.6667%; }
  .col-lg-9    { flex: 0 0 auto; width: 75%; }
  .col-lg-10   { flex: 0 0 auto; width: 83.3333%; }
  .col-lg-11   { flex: 0 0 auto; width: 91.6667%; }
  .col-lg-12   { flex: 0 0 auto; width: 100%; }
  .offset-lg-0 { margin-left: 0; }
  .offset-lg-1 { margin-left:  8.3333%; }
  .offset-lg-2 { margin-left: 16.6667%; }
  .offset-lg-3 { margin-left: 25%; }
  .offset-lg-4 { margin-left: 33.3333%; }
  .offset-lg-5 { margin-left: 41.6667%; }
  .offset-lg-6 { margin-left: 50%; }
}

/* --- Grid: xl (≥1200px) --- */
@media (min-width: 1200px) {
  .col-xl      { flex: 1 0 0%; }
  .col-xl-auto { flex: 0 0 auto; width: auto; }
  .col-xl-1    { flex: 0 0 auto; width:  8.3333%; }
  .col-xl-2    { flex: 0 0 auto; width: 16.6667%; }
  .col-xl-3    { flex: 0 0 auto; width: 25%; }
  .col-xl-4    { flex: 0 0 auto; width: 33.3333%; }
  .col-xl-5    { flex: 0 0 auto; width: 41.6667%; }
  .col-xl-6    { flex: 0 0 auto; width: 50%; }
  .col-xl-7    { flex: 0 0 auto; width: 58.3333%; }
  .col-xl-8    { flex: 0 0 auto; width: 66.6667%; }
  .col-xl-9    { flex: 0 0 auto; width: 75%; }
  .col-xl-10   { flex: 0 0 auto; width: 83.3333%; }
  .col-xl-11   { flex: 0 0 auto; width: 91.6667%; }
  .col-xl-12   { flex: 0 0 auto; width: 100%; }
  .offset-xl-0 { margin-left: 0; }
  .offset-xl-1 { margin-left:  8.3333%; }
  .offset-xl-2 { margin-left: 16.6667%; }
  .offset-xl-3 { margin-left: 25%; }
  .offset-xl-4 { margin-left: 33.3333%; }
  .offset-xl-5 { margin-left: 41.6667%; }
  .offset-xl-6 { margin-left: 50%; }
}

/* --- Grid: xxl (≥1400px) --- */
@media (min-width: 1400px) {
  .col-xxl      { flex: 1 0 0%; }
  .col-xxl-auto { flex: 0 0 auto; width: auto; }
  .col-xxl-1    { flex: 0 0 auto; width:  8.3333%; }
  .col-xxl-2    { flex: 0 0 auto; width: 16.6667%; }
  .col-xxl-3    { flex: 0 0 auto; width: 25%; }
  .col-xxl-4    { flex: 0 0 auto; width: 33.3333%; }
  .col-xxl-5    { flex: 0 0 auto; width: 41.6667%; }
  .col-xxl-6    { flex: 0 0 auto; width: 50%; }
  .col-xxl-7    { flex: 0 0 auto; width: 58.3333%; }
  .col-xxl-8    { flex: 0 0 auto; width: 66.6667%; }
  .col-xxl-9    { flex: 0 0 auto; width: 75%; }
  .col-xxl-10   { flex: 0 0 auto; width: 83.3333%; }
  .col-xxl-11   { flex: 0 0 auto; width: 91.6667%; }
  .col-xxl-12   { flex: 0 0 auto; width: 100%; }
  .offset-xxl-0 { margin-left: 0; }
  .offset-xxl-1 { margin-left:  8.3333%; }
  .offset-xxl-2 { margin-left: 16.6667%; }
  .offset-xxl-3 { margin-left: 25%; }
  .offset-xxl-4 { margin-left: 33.3333%; }
  .offset-xxl-5 { margin-left: 41.6667%; }
  .offset-xxl-6 { margin-left: 50%; }
}

/* --- Spacing utilities --- */
/* margin */
.m-0  { margin: 0 !important; }
.m-1  { margin: 0.25rem !important; }
.m-2  { margin: 0.5rem !important; }
.m-3  { margin: 1rem !important; }
.m-4  { margin: 1.5rem !important; }
.m-5  { margin: 3rem !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }
.ms-auto { margin-left: auto !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }
.me-auto { margin-right: auto !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

/* padding */
.p-0  { padding: 0 !important; }
.p-1  { padding: 0.25rem !important; }
.p-2  { padding: 0.5rem !important; }
.p-3  { padding: 1rem !important; }
.p-4  { padding: 1.5rem !important; }
.p-5  { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.ps-0 { padding-left: 0 !important; }
.ps-1 { padding-left: 0.25rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.ps-5 { padding-left: 3rem !important; }

.pe-0 { padding-right: 0 !important; }
.pe-1 { padding-right: 0.25rem !important; }
.pe-2 { padding-right: 0.5rem !important; }
.pe-3 { padding-right: 1rem !important; }
.pe-4 { padding-right: 1.5rem !important; }
.pe-5 { padding-right: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* gap */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* --- Display utilities --- */
.d-none         { display: none !important; }
.d-block        { display: block !important; }
.d-inline       { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex         { display: flex !important; }
.d-inline-flex  { display: inline-flex !important; }
.d-grid         { display: grid !important; }

@media (min-width: 576px) {
  .d-sm-none         { display: none !important; }
  .d-sm-block        { display: block !important; }
  .d-sm-inline       { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .d-sm-flex         { display: flex !important; }
  .d-sm-inline-flex  { display: inline-flex !important; }
  .d-sm-grid         { display: grid !important; }
}

@media (min-width: 768px) {
  .d-md-none         { display: none !important; }
  .d-md-block        { display: block !important; }
  .d-md-inline       { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-flex         { display: flex !important; }
  .d-md-inline-flex  { display: inline-flex !important; }
  .d-md-grid         { display: grid !important; }
}

@media (min-width: 992px) {
  .d-lg-none         { display: none !important; }
  .d-lg-block        { display: block !important; }
  .d-lg-inline       { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .d-lg-flex         { display: flex !important; }
  .d-lg-inline-flex  { display: inline-flex !important; }
  .d-lg-grid         { display: grid !important; }
}

@media (min-width: 1200px) {
  .d-xl-none         { display: none !important; }
  .d-xl-block        { display: block !important; }
  .d-xl-inline       { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
  .d-xl-flex         { display: flex !important; }
  .d-xl-inline-flex  { display: inline-flex !important; }
  .d-xl-grid         { display: grid !important; }
}

@media (min-width: 1400px) {
  .d-xxl-none         { display: none !important; }
  .d-xxl-block        { display: block !important; }
  .d-xxl-inline       { display: inline !important; }
  .d-xxl-inline-block { display: inline-block !important; }
  .d-xxl-flex         { display: flex !important; }
  .d-xxl-inline-flex  { display: inline-flex !important; }
  .d-xxl-grid         { display: grid !important; }
}

/* --- Flex utilities --- */
.flex-row            { flex-direction: row !important; }
.flex-column         { flex-direction: column !important; }
.flex-row-reverse    { flex-direction: row-reverse !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }
.flex-wrap           { flex-wrap: wrap !important; }
.flex-nowrap         { flex-wrap: nowrap !important; }
.flex-grow-0         { flex-grow: 0 !important; }
.flex-grow-1         { flex-grow: 1 !important; }
.flex-shrink-0       { flex-shrink: 0 !important; }
.flex-shrink-1       { flex-shrink: 1 !important; }

.justify-content-start   { justify-content: flex-start !important; }
.justify-content-end     { justify-content: flex-end !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around  { justify-content: space-around !important; }
.justify-content-evenly  { justify-content: space-evenly !important; }

.align-items-start    { align-items: flex-start !important; }
.align-items-end      { align-items: flex-end !important; }
.align-items-center   { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch  { align-items: stretch !important; }

.align-self-start   { align-self: flex-start !important; }
.align-self-end     { align-self: flex-end !important; }
.align-self-center  { align-self: center !important; }
.align-self-stretch { align-self: stretch !important; }

/* --- Text utilities --- */
.text-start   { text-align: left !important; }
.text-center  { text-align: center !important; }
.text-end     { text-align: right !important; }

.text-nowrap    { white-space: nowrap !important; }
.text-truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.fw-light   { font-weight: 300 !important; }
.fw-normal  { font-weight: 400 !important; }
.fw-medium  { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold    { font-weight: 700 !important; }

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

.lh-1  { line-height: 1 !important; }
.lh-sm { line-height: 1.25 !important; }
.lh-base { line-height: 1.65 !important; }
.lh-lg { line-height: 2 !important; }

@media (min-width: 768px) {
  .text-md-start  { text-align: left !important; }
  .text-md-center { text-align: center !important; }
  .text-md-end    { text-align: right !important; }
}

@media (min-width: 992px) {
  .text-lg-start  { text-align: left !important; }
  .text-lg-center { text-align: center !important; }
  .text-lg-end    { text-align: right !important; }
}

@media (min-width: 1200px) {
  .text-xl-start  { text-align: left !important; }
  .text-xl-center { text-align: center !important; }
  .text-xl-end    { text-align: right !important; }
}

@media (min-width: 1400px) {
  .text-xxl-start  { text-align: left !important; }
  .text-xxl-center { text-align: center !important; }
  .text-xxl-end    { text-align: right !important; }
}

/* --- Typography classes --- */

/* Display: hero-scale, expressive (--font-heading) */
.display-1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-3 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.display-4 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Semantic typography: branded headings (--font-heading) */
.text-display {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.section--bold .text-title {
  color: var(--color-bg);
}

.text-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

.section--bold .text-subtitle {
  color: var(--color-bg);
}

.text-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  /* Smart text color swap if accent is too light */
  color: var(--color-accent-text, var(--color-accent));
}

/* Heading classes: content headings (--font-body, neutral) */
/* Elements get margin-bottom; classes don't (like Bootstrap) */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
}

h1, .h1 {
  font-family: var(--font-body);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h2, .h2 {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

h5, .h5 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

h6, .h6 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* Inverted heading colors on dark backgrounds */
.section--bold h1, .section--bold .h1,
.section--bold h2, .section--bold .h2,
.section--bold h3, .section--bold .h3,
.section--bold h4, .section--bold .h4,
.section--bold h5, .section--bold .h5,
.section--bold h6, .section--bold .h6 {
  color: var(--color-bg);
}

/* Body text helpers */
.lead {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-body);
}

.section--bold .lead {
  color: var(--color-bg-inverted-muted);
}

.small, small {
  font-size: 0.85em;
}

.text-body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.text-small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
}

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

.section--bold .text-muted {
  color: var(--color-bg-inverted-muted) !important;
}

/* Blockquote */
.blockquote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.5;
  font-style: italic;
  color: var(--color-text);
  padding-left: 1.5rem;
  border-left: 4px solid var(--color-accent);
}

.section--bold .blockquote {
  color: var(--color-bg);
  border-left-color: var(--color-accent);
}

.blockquote-footer {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.blockquote-footer::before {
  content: "— ";
}

.section--bold .blockquote-footer {
  color: var(--color-bg-inverted-muted);
}

/* Mark / highlight */
mark, .mark {
  background: color-mix(in oklch, var(--color-accent) 25%, transparent);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

/* --- Sizing utilities --- */
.w-25  { width: 25% !important; }
.w-50  { width: 50% !important; }
.w-75  { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.h-100 { height: 100% !important; }
.mw-100 { max-width: 100% !important; }

/* --- Position utilities --- */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed    { position: fixed !important; }
.position-sticky   { position: sticky !important; }
.top-0    { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0  { left: 0 !important; }
.end-0    { right: 0 !important; }

/* --- Misc utilities --- */
.overflow-hidden  { overflow: hidden !important; }
.overflow-auto    { overflow: auto !important; }
.rounded          { border-radius: var(--border-radius) !important; }
.rounded-0        { border-radius: 0 !important; }
.rounded-circle   { border-radius: 50% !important; }
.rounded-4        { border-radius: 1rem !important; }
.border           { border: 1px solid var(--color-border) !important; }
.border-0         { border: 0 !important; }
.border-bottom    { border-bottom: 1px solid var(--color-border) !important; }
.shadow-sm        { box-shadow: 0 1px 3px color-mix(in oklch, var(--color-text) 8%, transparent) !important; }
.shadow           { box-shadow: 0 4px 12px color-mix(in oklch, var(--color-text) 10%, transparent) !important; }
.shadow-lg        { box-shadow: 0 8px 24px color-mix(in oklch, var(--color-text) 12%, transparent) !important; }
.shadow-none      { box-shadow: none !important; }
.opacity-0   { opacity: 0 !important; }
.opacity-25  { opacity: .25 !important; }
.opacity-50  { opacity: .5 !important; }
.opacity-75  { opacity: .75 !important; }
.opacity-100 { opacity: 1 !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.img-fluid { max-width: 100%; height: auto; }
.object-fit-cover { object-fit: cover !important; }
.text-primary     { color: var(--color-primary) !important; }
.text-white       { color: #fff !important; }
.text-dark        { color: var(--color-text) !important; }

/* --- Site Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hide on scroll-down */
.site-nav--hidden {
  transform: translateY(-100%);
}

/* Floating shadow when re-shown on scroll-up */
.site-nav--shadow {
  box-shadow: 0 2px 12px color-mix(in oklch, var(--color-text) 8%, transparent);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-nav__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.site-nav__logo:hover {
  color: var(--color-primary);
}

.site-nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav__links a {
  color: var(--color-text-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav__links a:hover {
  color: var(--color-primary);
}

.site-nav__links a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* Nav toggler (mobile) */
.site-nav__toggler {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile menu open state */
.site-nav__links.show {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 24px;
  gap: 4px;
  box-shadow: 0 8px 24px color-mix(in oklch, var(--color-text) 10%, transparent);
}

.site-nav__links.show a {
  display: block;
  padding: 8px 0;
  font-size: 1rem;
  color: var(--color-text-body);
}

.site-nav__links.show a:hover {
  color: var(--color-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-btn-red);
  color: #ffffff;
  border-color: var(--color-btn-red);
}

.btn--primary:hover {
  background: color-mix(in oklch, var(--color-btn-red), black 15%);
  border-color: color-mix(in oklch, var(--color-btn-red), black 15%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in oklch, var(--color-btn-red) 35%, transparent);
}

.btn--outline {
  background: transparent;
  color: var(--color-btn-blue);
  border-color: var(--color-btn-blue);
}

.btn--outline:hover {
  background: var(--color-btn-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Outline on dark backgrounds */
.section--bold .btn--outline {
  color: var(--color-bg);
  border-color: var(--color-bg);
}

.section--bold .btn--outline:hover {
  background: var(--color-bg);
  color: var(--color-btn-blue);
}

/* Size variants */
.btn--sm {
  font-size: 0.85rem;
  padding: 8px 20px;
  gap: 6px;
}

.btn--lg {
  font-size: 1.1rem;
  padding: 18px 40px;
  gap: 10px;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
  background: var(--color-bg);
}

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

.section--bold {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* --- Section Header --- */
.section-header {
  max-width: 620px;
  margin-bottom: 48px;
}

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

.section-header__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-accent-text, var(--color-accent));
  margin-bottom: 12px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section--bold .section-header__title {
  color: var(--color-bg);
}

.section-header__description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.section--bold .section-header__description {
  color: var(--color-bg-inverted-muted);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px color-mix(in oklch, var(--color-text) 8%, transparent);
}

.section--alt .card {
  background: var(--color-bg);
}

.section--bold .card {
  background: color-mix(in oklch, var(--color-bg) 12%, transparent);
  border-color: color-mix(in oklch, var(--color-bg) 20%, transparent);
}

.section--bold .card h3 {
  color: var(--color-bg);
}

.section--bold .card p {
  color: var(--color-bg-inverted-muted);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: calc(var(--border-radius) * 0.8);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.section--bold .card__icon {
  background: color-mix(in oklch, var(--color-accent) 25%, transparent);
  color: var(--color-accent);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Features Row (stats) --- */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.feature {
  text-align: center;
}

.feature__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.feature__label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.section--bold .feature__label {
  color: var(--color-bg-inverted-muted);
}

/* --- Text Content --- */
.text-content {
  max-width: 720px;
}

.text-content p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.text-content p:last-child {
  margin-bottom: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner .btn {
  margin-top: 8px;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 48px 0 32px;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.site-footer__text {
  font-size: 0.85rem;
  opacity: 0.6;
  max-width: 280px;
  line-height: 1.6;
}

.site-footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-bg); 
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.65;
  margin-bottom: 12px;
}

.site-footer__col ul {
  list-style: none;
}

.site-footer__col li {
  margin-bottom: 8px;
}

.site-footer__col a {
  color: var(--color-bg);
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.site-footer__col a:hover {
  opacity: 1;
  color: var(--color-bg);
}

.site-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in oklch, var(--color-bg) 15%, transparent);
  font-size: 0.8rem;
  opacity: 0.55;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__bottom-links a {
  color: var(--color-bg);
  opacity: 1;
  transition: opacity 0.2s;
}

.site-footer__bottom-links a:hover {
  opacity: 0.7;
  color: var(--color-bg);
}

/* Offset footer bottom when the sticky CTA bar is visible */
body.has-sticky-cta .site-footer {
  padding-bottom: 80px;
}

/* --- Footer: Language Switcher --- */
.site-footer__languages {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in oklch, var(--color-bg) 15%, transparent);
  text-align: center;
}

.site-footer__lang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-bg);
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.site-footer__lang-link:hover,
.site-footer__lang-link.active {
  opacity: 1;
  color: var(--color-bg);
}

/* Language dropdown (10+ languages) */
.site-footer__lang-dropdown {
  display: inline-block;
  position: relative;
}

.site-footer__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in oklch, var(--color-bg) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-bg) 20%, transparent);
  border-radius: var(--border-radius);
  color: var(--color-bg);
  font-size: 0.85rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.site-footer__lang-btn:hover {
  background: color-mix(in oklch, var(--color-bg) 18%, transparent);
}

.site-footer__lang-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  list-style: none;
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
  z-index: 50;
}

.site-footer__lang-menu.show {
  display: block;
}

.site-footer__lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--color-text-body);
  font-size: 0.85rem;
  opacity: 1;
  transition: background 0.15s;
}

.site-footer__lang-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.site-footer__lang-menu a.active {
  font-weight: 600;
  color: var(--color-primary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
}