/* ==========================================================================
   RUSL · SCC — Central Design System
   The Royal Utilisation Services (Pvt.) Ltd · Sigma Construction Company

   Brand colours are taken from the company logos & brochure:
     Royal Blue  #283090  (RUSL shield, brochure title band)
     Bronze Gold #987848  (SCC mark, brochure corner accents)
     Flame Red   #E81820  (RUSL flame — use sparingly)

   Every page uses ONLY these tokens (var(--…)). Never hard-code a colour,
   font size or spacing value in a page — add / change it here.

   Theme: <html data-theme="light|dark" data-bs-theme="light|dark">
   (set by assets/js/theme.js; follows the device setting until the visitor
   picks one). Bootstrap 5.3 components follow via data-bs-theme.

   Breakpoints (same as Bootstrap 5.3 — use these in every media query):
     xs <576 · sm ≥576 (large phone) · md ≥768 (tablet) · lg ≥992 (laptop)
     xl ≥1200 (desktop) · xxl ≥1400 (large desktop) · 3xl ≥1920 (big screen)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   Heading : Plus Jakarta Sans — modern geometric, confident, corporate
   Body    : Inter — designed for screens, very readable at small sizes
   Bangla  : Hind Siliguri — fallback for Bangla notices / names
   -------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=Hind+Siliguri:wght@400;500;600&display=swap");

/* --------------------------------------------------------------------------
   2. Brand palette (raw scales — use the semantic tokens in §3 in pages)
   -------------------------------------------------------------------------- */
:root {
  /* Royal Blue */
  --blue-50: #EEF0FB;
  --blue-100: #DCDFF6;
  --blue-200: #B9BEEE;
  --blue-300: #8F96F2;
  --blue-400: #6169D0;
  --blue-500: #3A42AE;
  --blue-600: #283090;   /* brand */
  --blue-700: #1F2575;
  --blue-800: #181C5A;
  --blue-900: #12153F;
  --blue-950: #0B0D24;

  /* Bronze Gold */
  --gold-50: #FAF6EF;
  --gold-100: #F2E8D6;
  --gold-200: #E6D2AE;
  --gold-300: #D9B77E;
  --gold-400: #C9A266;
  --gold-500: #A8834A;
  --gold-600: #987848;   /* brand */
  --gold-700: #7A5E2E;
  --gold-800: #5C4622;
  --gold-900: #3D2E16;

  /* Flame Red */
  --red-300: #FF6B6F;
  --red-500: #E81820;    /* brand */
  --red-600: #C8141C;
  --red-700: #A11016;

  /* Neutrals — slightly blue-tinted so greys sit well next to the brand blue */
  --ink-0: #FFFFFF;
  --ink-25: #F6F7FB;
  --ink-50: #EEF0F8;
  --ink-100: #DDE0EE;
  --ink-200: #C3C7DD;
  --ink-300: #A4A8C8;
  --ink-400: #7B80A0;
  --ink-500: #565B7A;
  --ink-600: #3E4363;
  --ink-700: #2A2F63;
  --ink-800: #1A1E4A;
  --ink-850: #13163A;
  --ink-900: #14173A;
  --ink-950: #0B0D24;

  /* Status */
  --green-500: #1E9E6A;
  --green-300: #5FD3A2;
  --amber-500: #C98A0B;
  --amber-300: #F2C14E;
}

/* --------------------------------------------------------------------------
   3. Semantic tokens — LIGHT (default)
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  color-scheme: light;

  /* Surfaces */
  --color-bg: var(--ink-25);            /* page background (soft, not pure white) */
  --color-surface: var(--ink-0);        /* cards, header, menus */
  --color-surface-alt: var(--ink-50);   /* alternating sections */
  --color-surface-raised: var(--ink-0); /* dropdowns, modals */
  --color-inverse: var(--blue-950);     /* dark band (footer, CTA) — same in both themes */
  --color-overlay: rgba(11, 13, 36, 0.62);   /* on top of photos */

  /* Text */
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-500);
  --color-text-subtle: var(--ink-400);       /* captions, meta — large/secondary text only */
  --color-text-inverse: #F2F3FA;             /* text on --color-inverse / photos */
  --color-heading: var(--blue-900);

  /* Brand roles */
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-primary-soft: var(--blue-50);      /* tinted backgrounds, chips */
  --color-on-primary: #FFFFFF;
  --color-accent: var(--gold-500);           /* lines, icons, highlights */
  --color-accent-hover: var(--gold-600);
  --color-accent-text: var(--gold-700);      /* gold text on light surfaces (AA) */
  --color-accent-soft: var(--gold-50);
  --color-on-accent: var(--ink-950);         /* dark text on gold (white fails contrast) */
  --color-danger: var(--red-600);
  --color-success: var(--green-500);
  --color-warning: var(--amber-500);

  /* Lines & focus */
  --color-border: var(--ink-100);
  --color-border-strong: var(--ink-200);
  --color-focus: rgba(40, 48, 144, 0.35);

  /* Shadows (blue-tinted, soft) */
  --shadow-xs: 0 1px 2px rgba(20, 23, 58, 0.06);
  --shadow-sm: 0 2px 8px rgba(20, 23, 58, 0.06), 0 1px 2px rgba(20, 23, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 23, 58, 0.08), 0 2px 6px rgba(20, 23, 58, 0.04);
  --shadow-lg: 0 20px 48px rgba(20, 23, 58, 0.12), 0 4px 12px rgba(20, 23, 58, 0.06);
  --shadow-glow: 0 10px 30px rgba(40, 48, 144, 0.28);

  /* Signature gradients */
  --gradient-brand: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 100%);
  --gradient-hero: linear-gradient(180deg, rgba(11, 13, 36, 0.15) 0%, rgba(11, 13, 36, 0.55) 55%, rgba(11, 13, 36, 0.92) 100%);
  --gradient-mesh: radial-gradient(60% 80% at 0% 0%, rgba(58, 66, 174, 0.10) 0%, transparent 60%),
                   radial-gradient(50% 60% at 100% 100%, rgba(168, 131, 74, 0.10) 0%, transparent 60%);
}

/* --------------------------------------------------------------------------
   4. Semantic tokens — DARK
   Deep navy (never pure black), off-white text (never pure white) — easy on
   the eyes at night; brand blue is lifted so it stays readable.
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;

  --color-bg: var(--ink-950);
  --color-surface: var(--ink-850);
  --color-surface-alt: #0F1230;
  --color-surface-raised: var(--ink-800);
  --color-inverse: #070818;
  --color-overlay: rgba(11, 13, 36, 0.72);

  --color-text: #E9EAF4;
  --color-text-muted: var(--ink-300);
  --color-text-subtle: var(--ink-400);
  --color-text-inverse: #F2F3FA;
  --color-heading: #F4F5FB;

  --color-primary: var(--blue-300);
  --color-primary-hover: #A9AEF6;
  --color-primary-soft: rgba(143, 150, 242, 0.12);
  --color-on-primary: var(--ink-950);
  --color-accent: var(--gold-400);
  --color-accent-hover: var(--gold-300);
  --color-accent-text: var(--gold-300);
  --color-accent-soft: rgba(201, 162, 102, 0.12);
  --color-on-accent: var(--ink-950);
  --color-danger: var(--red-300);
  --color-success: var(--green-300);
  --color-warning: var(--amber-300);

  --color-border: var(--ink-700);
  --color-border-strong: #3A4080;
  --color-focus: rgba(143, 150, 242, 0.45);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 10px 30px rgba(143, 150, 242, 0.22);

  --gradient-brand: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-800) 100%);
  --gradient-mesh: radial-gradient(60% 80% at 0% 0%, rgba(97, 105, 208, 0.16) 0%, transparent 60%),
                   radial-gradient(50% 60% at 100% 100%, rgba(201, 162, 102, 0.10) 0%, transparent 60%);
}

/* --------------------------------------------------------------------------
   5. Typography, spacing, shape, motion, layout (theme-independent)
   Font sizes & spacing are fluid: they grow smoothly from a 360px phone to a
   1440px desktop — no jumps between breakpoints.
   -------------------------------------------------------------------------- */
:root {
  --font-heading: "Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (min → max) */
  --text-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.8125rem);     /* 12 → 13  captions */
  --text-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);    /* 14 → 15  meta, labels */
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);     /* 16 → 17  body */
  --text-lg: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);     /* 18 → 20  lead */
  --text-xl: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);       /* 20 → 24  h4 / card title */
  --text-2xl: clamp(1.5rem, 1.32rem + 0.8vw, 2rem);          /* 24 → 32  h3 */
  --text-3xl: clamp(1.875rem, 1.55rem + 1.45vw, 2.75rem);    /* 30 → 44  h2 / section title */
  --text-4xl: clamp(2.25rem, 1.7rem + 2.45vw, 3.75rem);      /* 36 → 60  h1 / page title */
  --text-display: clamp(2.5rem, 1.6rem + 4vw, 5rem);         /* 40 → 80  hero headline */

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.16em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Spacing (4px 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-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-y: clamp(3.5rem, 2.2rem + 5.5vw, 7.5rem);   /* vertical padding of a section */
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);         /* page side padding */

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 820px;    /* long text (policies, biographies) */
  --header-h: 76px;

  /* Shape */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 500ms;

  --z-header: 1000;
  --z-dropdown: 1010;
  --z-overlay: 1040;
  --z-modal: 1050;
  --z-toast: 1080;
}

@media (max-width: 991.98px) {
  :root { --header-h: 64px; }
}

/* Bootstrap 5.3 ↔ design tokens (so Bootstrap components match in both themes) */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --bs-body-font-family: var(--font-body);
  --bs-body-bg: var(--color-bg);
  --bs-body-color: var(--color-text);
  --bs-emphasis-color: var(--color-heading);
  --bs-secondary-color: var(--color-text-muted);
  --bs-border-color: var(--color-border);
  --bs-primary: var(--color-primary);
  --bs-link-color: var(--color-primary);
  --bs-link-hover-color: var(--color-primary-hover);
  --bs-link-color-rgb: 40, 48, 144;
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-md);
  --bs-focus-ring-color: var(--color-focus);
}
[data-bs-theme="dark"] { --bs-link-color-rgb: 143, 150, 242; }

/* --------------------------------------------------------------------------
   6. Base
   -------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;     /* nothing may cause sideways scrolling on phones ("hidden" would break position: sticky) */
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-bold);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); line-height: var(--leading-snug); }
h4 { font-size: var(--text-xl); line-height: var(--leading-snug); }
h5 { font-size: var(--text-lg); line-height: var(--leading-snug); }
h6 { font-size: var(--text-base); line-height: var(--leading-snug); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-primary-hover); }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
::selection { background: var(--color-accent); color: var(--color-on-accent); }
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-8) 0; opacity: 1; }

/* --------------------------------------------------------------------------
   7. Layout helpers
   -------------------------------------------------------------------------- */
.rs-container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.rs-container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.rs-container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.rs-section { padding-block: var(--section-y); position: relative; }
.rs-section--alt { background: var(--color-surface-alt); }
.rs-section--mesh { background: var(--gradient-mesh), var(--color-bg); }
.rs-section--inverse {
  background: var(--color-inverse);
  color: var(--color-text-inverse);
  --color-heading: #FFFFFF;
  --color-text-muted: var(--ink-300);
}

/* Auto-fitting responsive grid: cards wrap by themselves on every screen */
.rs-grid {
  display: grid;
  gap: var(--rs-gap, clamp(1rem, 0.7rem + 1.2vw, 1.75rem));
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--rs-min, 280px)), 1fr));
}
.rs-grid--sm { --rs-min: 200px; }
.rs-grid--lg { --rs-min: 340px; }

.rs-stack > * + * { margin-top: var(--rs-stack, var(--space-4)); }

/* --------------------------------------------------------------------------
   8. Typography helpers
   -------------------------------------------------------------------------- */
.rs-display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-extrabold);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.rs-lead { font-size: var(--text-lg); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.rs-muted { color: var(--color-text-muted); }
.rs-small { font-size: var(--text-sm); }
.rs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-3);
}
.rs-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.rs-text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rs-prose { max-width: 72ch; line-height: var(--leading-relaxed); }
.rs-prose ul { padding-left: 1.2em; }
.rs-prose li { margin-bottom: var(--space-2); }
.rs-prose li::marker { color: var(--color-accent); }

/* Section heading block: eyebrow + title + intro */
.rs-section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.rs-section-head--center { margin-inline: auto; text-align: center; }
.rs-section-head--center .rs-eyebrow { justify-content: center; }
.rs-section-head h2 { margin-bottom: var(--space-3); }
.rs-section-head p { color: var(--color-text-muted); font-size: var(--text-lg); margin: 0; }

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.rs-btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-primary);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;               /* comfortable finger target on phones */
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.rs-btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.rs-btn:active { transform: translateY(0); }
.rs-btn i { font-size: 1.15em; transition: transform var(--dur-base) var(--ease-out); }
.rs-btn:hover i:last-child { transform: translateX(3px); }
.rs-btn--primary:hover { --btn-bg: var(--color-primary-hover); }
.rs-btn--accent { --btn-bg: var(--color-accent); --btn-fg: var(--color-on-accent); }
.rs-btn--accent:hover { --btn-bg: var(--color-accent-hover); box-shadow: 0 10px 30px rgba(168, 131, 74, 0.35); }
.rs-btn--outline { --btn-bg: transparent; --btn-fg: var(--color-primary); --btn-bd: var(--color-border-strong); }
.rs-btn--outline:hover { --btn-bd: var(--color-primary); --btn-bg: var(--color-primary-soft); box-shadow: none; }
.rs-btn--light { --btn-bg: rgba(255, 255, 255, 0.1); --btn-fg: #FFFFFF; --btn-bd: rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px); }
.rs-btn--light:hover { --btn-bg: #FFFFFF; --btn-fg: var(--blue-900); box-shadow: none; }
.rs-btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-primary); padding-inline: var(--space-2); min-height: 40px; }
.rs-btn--ghost:hover { box-shadow: none; transform: none; }
.rs-btn--sm { min-height: 38px; padding: 0.5rem 1.1rem; font-size: var(--text-xs); }
.rs-btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--text-base); }
.rs-btn--block { width: 100%; }
.rs-btn--icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.rs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.rs-card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.rs-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface-alt); }
.rs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.rs-card--hover:hover .rs-card__media img { transform: scale(1.06); }
.rs-card__body { padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.rs-card__title { font-size: var(--text-xl); margin: 0; }
.rs-card__text { color: var(--color-text-muted); margin: 0; }
.rs-card__footer { margin-top: auto; padding-top: var(--space-2); }
/* Gold line that grows on hover — the brand signature (from the brochure corners) */
.rs-card--accent::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 48px;
  background: var(--gradient-gold);
  transition: width var(--dur-slow) var(--ease-out);
}
.rs-card--accent:hover::after { width: 100%; }

/* Glass panel (on top of photos / dark bands) */
.rs-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--radius-lg);
  color: var(--color-text-inverse);
}

/* --------------------------------------------------------------------------
   11. Badges, chips, icon tiles, stats
   -------------------------------------------------------------------------- */
.rs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.rs-badge--accent { background: var(--color-accent-soft); color: var(--color-accent-text); }
.rs-badge--success { background: color-mix(in srgb, var(--color-success) 14%, transparent); color: var(--color-success); }
.rs-badge--danger { background: color-mix(in srgb, var(--color-danger) 14%, transparent); color: var(--color-danger); }
.rs-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.rs-icon-tile {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.rs-card:hover .rs-icon-tile { background: var(--color-primary); color: var(--color-on-primary); }
.rs-icon-tile--accent { background: var(--color-accent-soft); color: var(--color-accent-text); }

.rs-stat__value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  font-variant-numeric: tabular-nums;
}
.rs-stat__value sup { font-size: 0.5em; color: var(--color-accent); top: -0.8em; margin-left: 2px; }
.rs-stat__label { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-medium); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.rs-field { display: flex; flex-direction: column; gap: var(--space-2); }
.rs-label { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-heading); }
.rs-input,
.rs-textarea,
.rs-select {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: max(16px, var(--text-base));   /* ≥16px stops iPhone from zooming in */
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.rs-textarea { min-height: 140px; resize: vertical; }
.rs-input::placeholder,
.rs-textarea::placeholder { color: var(--color-text-subtle); }
.rs-input:focus,
.rs-textarea:focus,
.rs-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-focus); }

/* --------------------------------------------------------------------------
   13. Media helpers
   -------------------------------------------------------------------------- */
.rs-ratio { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.rs-ratio > img,
.rs-ratio > iframe,
.rs-ratio > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.rs-ratio--16x9 { aspect-ratio: 16 / 9; }
.rs-ratio--4x3 { aspect-ratio: 4 / 3; }
.rs-ratio--1x1 { aspect-ratio: 1 / 1; }
.rs-ratio--portrait { aspect-ratio: 4 / 5; }
.rs-photo-overlay { position: relative; isolation: isolate; color: var(--color-text-inverse); }
.rs-photo-overlay::before { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); z-index: -1; }
/* Client logos: equal visual weight, colour on hover */
.rs-logo-tile img { max-height: 56px; width: auto; margin-inline: auto; filter: grayscale(1); opacity: 0.7; transition: filter var(--dur-base), opacity var(--dur-base); }
.rs-logo-tile:hover img { filter: none; opacity: 1; }
[data-theme="dark"] .rs-logo-tile { background: #F2F3FA; }   /* logos are made for white backgrounds */

/* --------------------------------------------------------------------------
   14. Theme toggle button
   -------------------------------------------------------------------------- */
.rs-theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-heading);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.rs-theme-toggle:hover { background: var(--color-primary-soft); transform: rotate(-15deg); }
.rs-theme-toggle .rs-icon-sun { display: none; }
[data-theme="dark"] .rs-theme-toggle .rs-icon-sun { display: inline; }
[data-theme="dark"] .rs-theme-toggle .rs-icon-moon { display: none; }

/* --------------------------------------------------------------------------
   15. Scroll reveal (add .rs-reveal; theme.js adds .is-visible on scroll)
   -------------------------------------------------------------------------- */
.rs-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.rs-reveal.is-visible { opacity: 1; transform: none; }
.rs-reveal[data-delay="1"] { transition-delay: 0.08s; }
.rs-reveal[data-delay="2"] { transition-delay: 0.16s; }
.rs-reveal[data-delay="3"] { transition-delay: 0.24s; }
.rs-reveal[data-delay="4"] { transition-delay: 0.32s; }
.no-js .rs-reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   16. Accessibility & preferences
   -------------------------------------------------------------------------- */
.rs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rs-skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-toast); padding: var(--space-3) var(--space-5); background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-sm); }
.rs-skip-link:focus { top: var(--space-4); color: var(--color-on-primary); }

@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; }
  .rs-reveal { opacity: 1; transform: none; }
}

/* Very large screens (≥1920): a little more room, never stretched text */
@media (min-width: 1920px) {
  :root { --container: 1360px; --container-wide: 1600px; }
}
