/* ==========================================================================
   DUKU FORÈ FOUNDATION — GLOBAL DESIGN SYSTEM (v3)
   - Tokenized, accessible, responsive, dark-mode ready, perf-friendly
   - Works with your existing HTML & class names (compat shims included)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) ROOT TOKENS (THEME)
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand: #1c2a3a; /* deep navy */
  --brand-600: #172233;
  --brand-700: #0f1824;
  --accent: #f96d00; /* orange CTA */
  --accent-600: #e66500;
  --accent-700: #c95900;
  --mint: #20c997;

  /* Neutrals */
  --bg: #ffffff;
  --surface: #ffffff;
  --elev-1: #f7f8fa;
  --elev-2: #eef1f5;
  --text: #0f1a26;
  --text-subtle: #5c6b7a;
  --line: #e6ebf1;

  /* State */
  --info: #3182ce;
  --success: #2fbf71;
  --warning: #ffb020;
  --danger: #e03131;

  /* Focus & a11y */
  --focus: #5b9dd9;
  --focus-ring: 3px;

  /* Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Typography scale */
  --font-sans: "Overpass", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", sans-serif;
  --font-alt: "Dosis", var(--font-sans);
  --fs-900: clamp(2.5rem, 2vw + 2rem, 4rem); /* display */
  --fs-800: clamp(2rem, 1.4vw + 1.6rem, 3rem); /* h1 */
  --fs-700: clamp(1.75rem, 1vw + 1.4rem, 2.25rem); /* h2 */
  --fs-600: clamp(1.5rem, 0.7vw + 1.2rem, 1.75rem); /* h3 */
  --fs-500: 1.25rem; /* h4 */
  --fs-400: 1rem; /* body */
  --fs-300: 0.9375rem; /* small */
  --lh: 1.6;

  /* Spacing scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;

  /* Z-index */
  --z-nav: 1000;
  --z-mod: 1100;
  --z-toast: 1200;

  /* Transitions */
  --ease-1: cubic-bezier(0.2, 0.65, 0.3, 1);
  --ease-2: cubic-bezier(0.2, 0.7, 0.3, 1);
  --trans-fast: 120ms var(--ease-1);
  --trans-med: 220ms var(--ease-2);

  /* Legacy accent (kept for compat) */
  --legacy-accent: #f4c595; /* only where needed to avoid breaking */
}

/* Dark theme (auto via prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b131d;
    --surface: #0f1926;
    --elev-1: #121f2f;
    --elev-2: #16253a;
    --text: #e8f0fa;
    --text-subtle: #b5c2d1;
    --line: #25354a;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

/* Manual dark override if you prefer toggling */
.theme-dark {
  --bg: #0b131d;
  --surface: #0f1926;
  --elev-1: #121f2f;
  --elev-2: #16253a;
  --text: #e8f0fa;
  --text-subtle: #b5c2d1;
  --line: #25354a;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   2) BASE / ELEMENTS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--trans-med), opacity var(--trans-fast);
}
a:hover {
  color: var(--accent-700);
}
a.link-underline {
  text-decoration: underline;
}
a.link-underline:hover {
  text-decoration: none;
}

:focus-visible {
  outline: var(--focus-ring) solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Headings — lighter weight by default, optional alt font */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--text);
  font-family: var(--font-alt);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}
h1,
.h1 {
  font-size: var(--fs-800);
}
h2,
.h2 {
  font-size: var(--fs-700);
}
h3,
.h3 {
  font-size: var(--fs-600);
}
h4,
.h4 {
  font-size: var(--fs-500);
}
h5,
.h5 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--text-subtle);
}
small,
.small {
  font-size: var(--fs-300);
}

/* Containers */
.container,
.container-fluid {
  width: 100%;
}
.container {
  margin-inline: auto;
  padding-inline: var(--space-4);
  max-width: 1140px;
}
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
}

/* Utilities (selected, scalable) */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.m-0 {
  margin: 0 !important;
}
.mt-0 {
  margin-top: 0 !important;
}
.mt-2 {
  margin-top: var(--space-2) !important;
}
.mt-3 {
  margin-top: var(--space-3) !important;
}
.mt-4 {
  margin-top: var(--space-4) !important;
}
.mt-6 {
  margin-top: var(--space-6) !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-2 {
  margin-bottom: var(--space-2) !important;
}
.mb-3 {
  margin-bottom: var(--space-3) !important;
}
.mb-4 {
  margin-bottom: var(--space-4) !important;
}
.mb-6 {
  margin-bottom: var(--space-6) !important;
}
.p-0 {
  padding: 0 !important;
}
.p-2 {
  padding: var(--space-2) !important;
}
.p-3 {
  padding: var(--space-3) !important;
}
.p-4 {
  padding: var(--space-4) !important;
}
.rounded {
  border-radius: var(--radius) !important;
}
.rounded-lg {
  border-radius: var(--radius-lg) !important;
}
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}
.shadow-md {
  box-shadow: var(--shadow-md) !important;
}
.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}
.bg-surface {
  background: var(--surface) !important;
}
.bg-elev-1 {
  background: var(--elev-1) !important;
}
.border-top {
  border-top: 1px solid var(--line) !important;
}

/* Section wrapper */
.section {
  padding: var(--space-9) 0;
}
.section.bg-light {
  background: var(--elev-1) !important;
}
.section-heading {
  text-align: center;
  margin-bottom: var(--space-7);
}
.section-heading .lede {
  font-size: 1.1rem;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   3) NAVIGATION
   -------------------------------------------------------------------------- */
.ftco_navbar,
.ftco-navbar-light,
.navbar {
  background: transparent;
  position: absolute;
  inset-inline: 0;
  top: 0.75rem;
  z-index: var(--z-nav);
  transition: background var(--trans-med), box-shadow var(--trans-med),
    top var(--trans-med);
}
.navbar.is-scrolled,
.ftco-navbar-light.scrolled {
  position: fixed;
  top: 0;
  background: color-mix(in srgb, var(--brand) 96%, transparent);
  box-shadow: var(--shadow-md);
}
.navbar-dark .navbar-nav .nav-link,
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  font-size: 0.95rem;
  padding: var(--space-4) var(--space-3);
  color: #f0f4f8;
  opacity: 1;
  transition: color var(--trans-med), opacity var(--trans-fast);
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
}
.navbar-toggler {
  border: none;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Active state underline (desktop only) */
@media (min-width: 992px) {
  .navbar-dark .navbar-nav .nav-item.active > .nav-link {
    position: relative;
    color: #fff;
  }
  .navbar-dark .navbar-nav .nav-item.active > .nav-link::after {
    content: "";
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: 0.6rem;
    height: 2px;
    background: #fff;
  }
}

/* CTA in nav */
.ftco-navbar-light .navbar-nav > .nav-item.cta > a span {
  display: inline-block;
  border: 2px solid #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   4) HERO / COVER
   -------------------------------------------------------------------------- */
.hero,
.ftco-cover,
.block-30 {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
}
.hero::after,
.block-30::before,
.ftco-cover.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 42, 58, 0.55),
    rgba(28, 42, 58, 0.35)
  );
}
.block-30::before {
  background: rgba(0, 0, 0, 0.35);
}
.hero .display-4,
.ftco-cover .ftco-heading {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-alt);
}
.hero .lead,
.ftco-cover .ftco-subheading,
.ftco-cover p {
  color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   5) BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--elev-2);
  --btn-fg: var(--text);
  --btn-bd: transparent;
  --btn-shadow: var(--shadow-sm);
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast),
    background var(--trans-fast), color var(--trans-fast),
    border-color var(--trans-fast);
  box-shadow: var(--btn-shadow);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #111;
  --btn-bd: var(--accent);
}
.btn-primary:hover {
  --btn-bg: var(--accent-600);
  --btn-bd: var(--accent-600);
}

.btn-outline-primary {
  --btn-bg: transparent;
  --btn-fg: var(--accent);
  --btn-bd: var(--accent);
  --btn-shadow: none;
}
.btn-outline-primary:hover {
  --btn-bg: var(--accent);
  --btn-fg: #111;
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: #fff;
  --btn-shadow: none;
  border-width: 2px;
}

.btn-success {
  --btn-bg: var(--success);
  --btn-bd: var(--success);
  --btn-fg: #fff;
}
.btn-warning {
  --btn-bg: var(--warning);
  --btn-bd: var(--warning);
  --btn-fg: #111;
}
.btn-danger {
  --btn-bg: var(--danger);
  --btn-bd: var(--danger);
  --btn-fg: #fff;
}
.btn-secondary {
  --btn-bg: var(--brand);
  --btn-bd: var(--brand);
  --btn-fg: #fff;
}

/* Legacy button overrides cleaned up */
.btn:hover,
.btn:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   6) CARDS & FEATURE BLOCKS
   -------------------------------------------------------------------------- */
.card-lite {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}
.feature-icon {
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature-slab {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-slab .img-side {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.feature-tag {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--mint);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   7) LEADERSHIP CARDS
   -------------------------------------------------------------------------- */
.leader-card img {
  width: 100%;
  border-radius: 14px;
}
.leader-card h3 {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  color: var(--text);
}
.leader-card p.role {
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   8) GALLERY
   -------------------------------------------------------------------------- */
.gallery img {
  border-radius: 12px;
}
.img-hover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.img-hover img {
  transition: transform var(--trans-med);
}
.img-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 80%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-med), visibility var(--trans-med);
}
.img-hover .icon {
  position: absolute;
  z-index: 1;
  color: #fff;
  font-size: 1.6rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 10px));
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-med);
}
.img-hover:hover img {
  transform: scale(1.06);
}
.img-hover:hover::before {
  opacity: 0.85;
  visibility: visible;
}
.img-hover:hover .icon {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------
   9) FORMS
   -------------------------------------------------------------------------- */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--trans-med), box-shadow var(--trans-fast),
    background var(--trans-med);
}
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 var(--focus-ring)
    color-mix(in srgb, var(--accent) 25%, transparent);
  outline: none;
}
textarea.form-control {
  min-height: 140px;
}

/* Volunteer / inverse form (on image overlays) */
.form-volunteer .form-control {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.form-volunteer label {
  color: #fff;
}

/* --------------------------------------------------------------------------
   10) FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--brand-700);
  color: #cfd8e3;
  padding: var(--space-10) 0;
}
.footer .heading-section {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
}
.footer a {
  color: #e7eefc;
}
.footer a:hover {
  color: #fff;
}

/* Social chips */
.ftco-footer-social {
  padding: 0;
  margin: 0;
}
.ftco-footer-social li {
  list-style: none;
  display: inline-block;
  margin: 0 var(--space-2) var(--space-2) 0;
}
.ftco-footer-social li a {
  height: 48px;
  width: 48px;
  display: inline-block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  transition: transform var(--trans-fast), background var(--trans-fast);
}
.ftco-footer-social li a span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  color: #fff;
}
.ftco-footer-social li a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   11) COUNTERS / PROGRESS (lightweight)
   -------------------------------------------------------------------------- */
.ftco-counter .ftco-number {
  display: block;
  font-size: clamp(2.25rem, 2vw + 1.75rem, 4.5rem);
  font-weight: 800;
  color: var(--accent);
}
.ftco-counter .ftco-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

/* Simple progress */
.custom-progress {
  width: 100%;
  background: var(--elev-2);
  height: 0.375rem;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.custom-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--success);
  transition: width 600ms var(--ease-2);
}

/* --------------------------------------------------------------------------
   12) BLOG / POSTS (kept minimal but modern)
   -------------------------------------------------------------------------- */
.post-entry {
  margin-bottom: var(--space-6);
}
.post-entry .img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.post-entry .img-wrap img {
  transition: transform var(--trans-med);
}
.post-entry .img-wrap:hover img {
  transform: scale(1.06);
}
.post-entry h3 {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--text);
  margin-top: var(--space-3);
}
.post-entry h3 a {
  color: inherit;
}
.post-entry h3 a:hover {
  color: var(--accent-700);
}

/* --------------------------------------------------------------------------
   13) LOADER
   -------------------------------------------------------------------------- */
#ftco-loader {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  background: color-mix(in srgb, var(--bg) 92%, #fff);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-out, visibility 0s linear 0.2s;
  z-index: var(--z-toast);
}
#ftco-loader.show {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s ease-out, visibility 0s linear 0s;
}
#ftco-loader .circular {
  width: 48px;
  height: 48px;
  position: absolute;
  left: calc(50% - 24px);
  top: calc(50% - 24px);
  animation: loader-rotate 2s linear infinite;
}
#ftco-loader .path {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: loader-dash 1.5s ease-in-out infinite;
  stroke-linecap: round;
  stroke: var(--accent);
}
@keyframes loader-rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loader-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -136px;
  }
}

/* --------------------------------------------------------------------------
   14) MAP (kept responsive)
   -------------------------------------------------------------------------- */
#map {
  height: 420px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 992px) {
  #map {
    height: 320px;
  }
}

/* --------------------------------------------------------------------------
   15) COMPAT SHIMS (to avoid breaking existing markup)
   - tidy the original styles (lighter, tokenized) while preserving class names
   -------------------------------------------------------------------------- */

/* Legacy palette compatibility */
.text-primary {
  color: var(--legacy-accent) !important;
}
.bg-primary {
  background: var(--legacy-accent) !important;
}

/* Keep old .bg-light behavior but map to new elev-1 */
.bg-light {
  background: var(--elev-1) !important;
}

/* OLD footer kept but improved */
.site-section {
  padding: var(--space-9) 0;
}

/* Blocks */
.block-48 {
  background: var(--legacy-accent);
  color: #000;
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.block-48 .block-48-text-1 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.9rem);
  font-weight: 700;
}

.block-6 .icon {
  margin-right: var(--space-4);
  color: var(--accent);
}
.block-6 .media-body .heading {
  font-size: 1.125rem;
  color: var(--text);
}
.block-6 .media-body p {
  color: var(--text-subtle);
  margin-bottom: 0;
}

/* Featured / donate overlays re-implemented with tokens */
.featured-section,
.featured-donate {
  padding: var(--space-8) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.featured-section h2,
.featured-section p,
.featured-donate h2,
.featured-donate p {
  color: #fff;
}
.featured-section .featured-text,
.featured-donate .featured-text {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.featured-section.overlay-color-2::before,
.featured-donate.overlay-color-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 80%, #000);
  opacity: 0.88;
}
.featured-section.overlay-color::before,
.featured-donate.overlay-color::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--success) 80%, #000);
  opacity: 0.88;
}

/* Owl nav dots cleaned (if you still use Owl) */
.block-31 .owl-dots {
  position: absolute;
  bottom: 80px;
  right: 50px;
}
.block-31 .owl-dots .owl-dot {
  width: 40px;
  height: 2px;
  background: #fff;
  opacity: 0.4;
  display: inline-block;
  margin-left: 6px;
}
.block-31 .owl-dots .owl-dot.active {
  opacity: 1;
}

/* Breadcrumbs */
.bcrumbs {
  color: rgba(255, 255, 255, 0.6);
}
.bcrumbs a {
  color: #fff;
}
.bcrumbs .sep {
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   16) PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .navbar,
  .footer,
  #backToTop {
    display: none !important;
  }
  .section {
    padding: 0 !important;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* --------------------------------------------------------------------------
   17) OPTIONAL RTL SUPPORT (turn on via .rtl on <html>)
   -------------------------------------------------------------------------- */
.rtl,
[dir="rtl"] {
  direction: rtl;
}
.rtl .navbar .ml-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.rtl .text-right {
  text-align: left;
}
.rtl .text-left {
  text-align: right;
}

/* --------------------------------------------------------------------------
   18) EXTRA UTILITIES (quick composition helpers)
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 992px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.max-w-prose {
  max-width: 70ch;
}
.w-100 {
  width: 100% !important;
}
.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   19) ACCESSIBILITY HELPERS
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 0.6rem 0.9rem;
  background: #000;
  color: #fff;
  z-index: 10000;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   20) BACK-TO-TOP
   -------------------------------------------------------------------------- */
#backToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  z-index: 9999;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   21) CLEANUP OF OLD OPINIONATED RULES
   - Removes the “force black background on hover” behaviour that restricted brand use.
   -------------------------------------------------------------------------- */
/* (Intentionally omitted: old .btn:hover { background:#000 !important; } etc.) */
