/* FMSQ theme: red (#d12e1b, #ff6a55 in dark), black and white of the FMSQ logo. Editable by the studio. */
:root {
  --background: #ffffff;
  --foreground: #101010;
  --card: #f5f5f5;
  --card-foreground: #101010;
  --popover: #ffffff;
  --popover-foreground: #101010;
  --primary: #d12e1b;
  --primary-foreground: #ffffff;
  --secondary: #101010;
  --secondary-foreground: #ffffff;
  --muted: #eeeeee;
  --muted-foreground: #585858;
  --accent: #fdece8;
  --accent-foreground: #101010;
  --destructive: #b91c1c;
  --destructive-foreground: #ffffff;
  --border: #dedede;
  --input: #cfcfcf;
  --ring: #ee402d;
  --chart-1: #d12e1b;
  --chart-2: #ee402d;
  --chart-3: #6b6b72;
  --chart-4: #3f7d4e;
  --chart-5: #101010;
  --sidebar: #f5f5f5;
  --sidebar-foreground: #101010;
  --sidebar-primary: #d12e1b;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #fdece8;
  --sidebar-accent-foreground: #101010;
  --sidebar-border: #dedede;
  --sidebar-ring: #ee402d;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --tracking-normal: 0em;
  --radius: 0.75rem;
  --spacing: 0.25rem;
  --shadow-2xs: 0px 2px 0px 0px rgb(0 0 0 / 0.000);
  --shadow-xs: 0px 2px 0px 0px rgb(0 0 0 / 0.000);
  --shadow-sm: 0px 2px 0px 0px rgb(0 0 0 / 0.000), 0px 1px 2px -1px rgb(0 0 0 / 0.000);
  --shadow: 0px 2px 0px 0px rgb(0 0 0 / 0.000), 0px 1px 2px -1px rgb(0 0 0 / 0.000);
  --shadow-md: 0px 2px 0px 0px rgb(0 0 0 / 0.000), 0px 2px 4px -1px rgb(0 0 0 / 0.000);
  --shadow-lg: 0px 2px 0px 0px rgb(0 0 0 / 0.000), 0px 4px 6px -1px rgb(0 0 0 / 0.000);
  --shadow-xl: 0px 2px 0px 0px rgb(0 0 0 / 0.000), 0px 8px 10px -1px rgb(0 0 0 / 0.000);
  --shadow-2xl: 0px 2px 0px 0px rgb(0 0 0 / 0.000);
}

.dark {
  --background: #0d0d0d;
  --foreground: #f2f2f2;
  --card: #181818;
  --card-foreground: #f2f2f2;
  --popover: #1c1c1c;
  --popover-foreground: #f2f2f2;
  --primary: #ff6a55;
  --primary-foreground: #101010;
  --secondary: #eeeeee;
  --secondary-foreground: #101010;
  --muted: #202020;
  --muted-foreground: #adadad;
  --accent: #3a1511;
  --accent-foreground: #f2f2f2;
  --destructive: #f87171;
  --destructive-foreground: #1a0505;
  --border: #303030;
  --input: #383838;
  --ring: #ff6a55;
  --chart-1: #ff6a55;
  --chart-2: #ff7a64;
  --chart-3: #a8a8b0;
  --chart-4: #6fbf84;
  --chart-5: #f2f2f2;
  --sidebar: #181818;
  --sidebar-foreground: #f2f2f2;
  --sidebar-primary: #ff6a55;
  --sidebar-primary-foreground: #101010;
  --sidebar-accent: #3a1511;
  --sidebar-accent-foreground: #f2f2f2;
  --sidebar-border: #303030;
  --sidebar-ring: #ff6a55;
}


/* Ghost buttons are white-on-photo in hero/cta bands; on light sections they need dark text and border. */
html:not(.dark) .fm-section:not(.fm-section--dark) .fm-btn--ghost { color: var(--foreground); background: transparent; border-color: var(--foreground); }
html:not(.dark) .fm-section:not(.fm-section--dark) .fm-btn--ghost:hover { background: var(--muted); border-color: var(--foreground); }

/* Round 2: CTA text sits on a photo under this overlay; keep it dark enough for white text on any photo (AA worst case). */
:root .fm-cta::after { background: linear-gradient(120deg, rgb(40 8 4 / 0.94), rgb(150 30 18 / 0.92)); }

/* Round 2b: hero headline, eyebrow and lead sit on a busy photo (red banner behind the text); a darker shade keeps AA. */
:root .fm-hero__shade { background:
  linear-gradient(180deg, rgb(10 10 10 / 0.72) 0%, rgb(10 10 10 / 0.7) 35%, rgb(10 10 10 / 0.9) 100%),
  linear-gradient(100deg, rgb(10 10 10 / 0.85) 0%, rgb(10 10 10 / 0.6) 55%, rgb(10 10 10 / 0.35) 100%); }

/* Desktop: text sits in the left column only; darken that column and keep the original photo and red tint on the right. */
@media (min-width: 62rem) { :root .fm-hero__shade { background:
  linear-gradient(180deg, rgb(10 10 10 / 0.55) 0%, rgb(10 10 10 / 0.25) 35%, rgb(10 10 10 / 0.88) 100%),
  linear-gradient(100deg, rgb(10 10 10 / 0.92) 0%, rgb(10 10 10 / 0.85) 45%, rgb(209 46 27 / 0.3) 70%, rgb(10 10 10 / 0.2) 100%); } }
