/* Copyright Houston IT Developers LLC
   For the Martyrs: the new header/menu (src/header.js) and site-wide readability fixes layered over the
   Base44 build. Contrast targets: 4.5:1 for small text, 3:1 for large (WCAG AA). */

:root {
  --ftm-ink: #0e0a08;
  --ftm-cream: #f5f0eb;
  --ftm-crimson: hsl(351 76% 54%);
  --ftm-crimson-on-dark: hsl(351 76% 63%);   /* 5.7:1 on the near-black sections */
  --ftm-crimson-on-light: hsl(351 76% 44%);  /* 5.2:1 on cream */
  --ftm-crimson-btn: hsl(351 76% 46%);       /* white text on it: 5.5:1 */
  --ftm-header-h: 72px;
}
@media (min-width: 768px) { :root { --ftm-header-h: 88px; } }

/* ---------- Header ---------- */
.ftm-skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 8px;
  background: var(--ftm-cream); color: var(--ftm-ink); font: 600 14px Barlow, system-ui, sans-serif; transition: top .15s; }
.ftm-skip:focus { top: 12px; }
.ftm-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--ftm-header-h);
  padding-top: env(safe-area-inset-top); box-sizing: content-box;
  background: linear-gradient(to bottom, rgba(14,10,8,.75), rgba(14,10,8,0));
  transition: background-color .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.ftm-header.is-solid { background: rgba(14,10,8,.94); border-bottom-color: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.ftm-header-inner { max-width: 80rem; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
@media (min-width: 768px) { .ftm-header-inner { padding: 0 24px; } }

.ftm-logo { display: block; flex: none; border-radius: 6px; }
.ftm-logo img { display: block; height: 46px; width: auto; filter: drop-shadow(0 0 10px rgba(227,49,75,.18)); }
@media (min-width: 768px) { .ftm-logo img { height: 64px; } }

.ftm-desk { display: none; margin-left: auto; align-items: center; gap: 6px; }
.ftm-desk-social { display: none; }
@media (min-width: 1024px) {
  .ftm-desk { display: flex; }
  .ftm-desk-social { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
}
@media (min-width: 1280px) { .ftm-desk { gap: 12px; } }
.ftm-desk-group { position: relative; }
.ftm-desk-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px; border: 0; background: none; cursor: pointer;
  font: 400 .95rem/1 Anton, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.88);
  border-radius: 6px; position: relative; transition: color .2s; }
.ftm-desk-link:hover, .ftm-desk-link[aria-expanded="true"] { color: #fff; }
.ftm-desk-link.is-active { color: #fff; }
.ftm-desk-link.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--ftm-crimson); border-radius: 2px; }
.ftm-chev { width: 12px; height: 12px; transition: transform .2s; }
.ftm-chev.is-open { transform: rotate(180deg); }
.ftm-drop { position: absolute; top: 100%; left: 0; padding-top: 10px; min-width: 220px; z-index: 60; }
.ftm-drop-panel { background: rgba(20,15,12,.98); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.ftm-drop-link { display: block; padding: 12px 14px; border-radius: 8px; color: rgba(255,255,255,.9);
  font: 600 .95rem/1.2 Barlow, system-ui, sans-serif; letter-spacing: .02em; transition: background-color .15s, color .15s; }
.ftm-drop-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.ftm-drop-link.is-active { color: var(--ftm-crimson-on-dark); }
.ftm-desk-give { margin-left: 8px; padding: 12px 22px; border-radius: 999px; background: var(--ftm-crimson-btn); color: #fff;
  font: 400 .95rem/1 Anton, sans-serif; letter-spacing: .16em; text-transform: uppercase; transition: background-color .2s, transform .2s; }
.ftm-desk-give:hover { background: var(--ftm-crimson); transform: translateY(-1px); }
.ftm-desk-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: rgba(255,255,255,.75); transition: color .2s, background-color .2s; }
.ftm-desk-social a:hover { color: #fff; background: rgba(255,255,255,.08); }
.ftm-desk-social svg { width: 17px; height: 17px; }

.ftm-burger { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(14,10,8,.45); color: #fff; cursor: pointer;
  display: grid; grid-template-columns: 18px auto; grid-template-rows: repeat(3, 2px); column-gap: 10px; row-gap: 4px; align-content: center; }
.ftm-burger span { grid-column: 1; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.ftm-burger span:nth-child(2) { width: 13px; }
.ftm-burger em { grid-column: 2; grid-row: 1 / 4; align-self: center; font: 400 .85rem/1 Anton, sans-serif; letter-spacing: .16em; text-transform: uppercase; font-style: normal; }
@media (min-width: 1024px) { .ftm-burger { display: none; } }

/* Floating give button (mobile/tablet) */
.ftm-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; padding: 14px 22px; border-radius: 999px;
  background: var(--ftm-crimson-btn); color: #fff; font: 400 .9rem/1 Anton, sans-serif; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08); }
@media (min-width: 1024px) { .ftm-fab { display: none; } }

/* ---------- Mobile menu ---------- */
.ftm-menu { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--ftm-ink);
  background-image: radial-gradient(120% 60% at 100% 0%, rgba(227,49,75,.14), transparent 60%);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.ftm-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--ftm-header-h); padding: 0 20px; flex: none; }
.ftm-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.04); color: #fff; cursor: pointer; }
.ftm-icon-btn svg { width: 22px; height: 22px; }
.ftm-menu-nav { padding: 4px 20px 8px; flex: 1 0 auto; }
.ftm-menu-home { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; margin-bottom: 4px;
  font: 400 1.75rem/1.1 Anton, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.ftm-menu-sec { padding-top: 22px; }
.ftm-menu-label { margin: 0 0 4px; font: 600 .8rem/1 Barlow, system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--ftm-crimson-on-dark); }
.ftm-menu-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 6px 0;
  font: 400 1.75rem/1.1 Anton, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1); transition: color .15s; }
.ftm-menu-link:active, .ftm-menu-home:active { color: var(--ftm-crimson-on-dark); }
.ftm-menu-link.is-active, .ftm-menu-home.is-active { color: var(--ftm-crimson-on-dark); }
.ftm-menu-arrow { width: 22px; height: 22px; flex: none; color: rgba(255,255,255,.45); transition: transform .2s, color .2s; }
.ftm-menu-link.is-active .ftm-menu-arrow, .ftm-menu-home.is-active .ftm-menu-arrow { color: var(--ftm-crimson-on-dark); }
@media (hover: hover) {
  .ftm-menu-link:hover, .ftm-menu-home:hover { color: var(--ftm-crimson-on-dark); }
  .ftm-menu-link:hover .ftm-menu-arrow, .ftm-menu-home:hover .ftm-menu-arrow { transform: translateX(4px); color: currentColor; }
}
.ftm-menu-foot { padding: 24px 20px 28px; flex: none; }
.ftm-menu-give { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 999px;
  background: var(--ftm-crimson-btn); color: #fff; font: 400 1.05rem/1 Anton, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(227,49,75,.25); }
.ftm-menu-social { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.ftm-menu-social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.85); }
.ftm-menu-social svg { width: 20px; height: 20px; }
@media (min-height: 760px) { .ftm-menu-link { min-height: 60px; } }

/* ---------- Site-wide polish ---------- */
:focus-visible { outline: 2px solid var(--ftm-crimson-on-dark); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
html { scroll-padding-top: calc(var(--ftm-header-h) + 16px); -webkit-text-size-adjust: 100%; }
/* iOS zooms into any field under 16px when it gets focus. */
@media (max-width: 767px) { input, select, textarea { font-size: 16px !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ---------- Readability: nothing under 12px ---------- */
.text-\[0\.6rem\], .text-\[10px\], .text-\[0\.65rem\] { font-size: .75rem !important; }
.text-\[0\.7rem\] { font-size: .8125rem !important; }

/* ---------- Readability: faint text gets enough contrast ---------- */
/* dark text on light sections */
.text-\[\#2a1f1a\]\/30, .text-\[\#2a1f1a\]\/35, .text-\[\#2a1f1a\]\/40, .text-\[\#2a1f1a\]\/45, .text-\[\#2a1f1a\]\/50 { color: rgb(42 31 26 / .74) !important; }
.text-\[\#2a1f1a\]\/55, .text-\[\#2a1f1a\]\/60 { color: rgb(42 31 26 / .8) !important; }
.text-black\/40, .text-black\/45, .text-black\/50 { color: rgb(0 0 0 / .7) !important; }
/* light text on dark sections */
.text-\[\#f5f0eb\]\/25, .text-\[\#f5f0eb\]\/30, .text-\[\#f5f0eb\]\/35, .text-\[\#f5f0eb\]\/40, .text-\[\#f5f0eb\]\/45, .text-\[\#f5f0eb\]\/50 { color: rgb(245 240 235 / .74) !important; }
.text-\[\#f5f0eb\]\/55, .text-\[\#f5f0eb\]\/60, .text-\[\#f5f0eb\]\/65 { color: rgb(245 240 235 / .82) !important; }
.text-white\/25, .text-white\/30, .text-white\/35, .text-white\/40, .text-white\/45, .text-white\/50 { color: rgb(255 255 255 / .74) !important; }
.text-white\/55, .text-white\/60, .text-white\/65 { color: rgb(255 255 255 / .82) !important; }
.text-alabaster\/30, .text-alabaster\/40, .text-alabaster\/45, .text-alabaster\/50, .text-alabaster\/55 { color: hsl(30 33% 94% / .78) !important; }
.text-alabaster\/60, .text-alabaster\/65 { color: hsl(30 33% 94% / .85) !important; }
.text-crimson\/70, .text-crimson\/80 { color: var(--ftm-crimson-on-dark) !important; }

/* ---------- Readability: small crimson text, lighter on dark and deeper on light ---------- */
/* (Large crimson headings already pass 3:1 on both, so they keep the exact brand colour.) */
.text-crimson:is(.text-xs, .text-sm, .text-base, .text-\[0\.6rem\], .text-\[0\.65rem\], .text-\[0\.7rem\], .text-\[10px\], .text-\[11px\], .text-\[12px\], .text-lg, .text-xl), :is(.text-xs, .text-sm, .text-base, .text-\[0\.6rem\], .text-\[0\.65rem\], .text-\[0\.7rem\], .text-\[10px\], .text-\[11px\], .text-\[12px\], .text-lg, .text-xl) .text-crimson { color: var(--ftm-crimson-on-dark); }
:is(.bg-\[\#f5f0eb\], .bg-white, .bg-\[hsl\(var\(--alabaster\)\)\], .bg-\[hsl\(var\(--muted\)\)\], .bg-\[hsl\(var\(--input\)\)\]) :is(.text-crimson, .text-crimson\/70, .text-crimson\/80, .text-\[\#c8324a\]):is(.text-xs, .text-sm, .text-base, .text-\[0\.6rem\], .text-\[0\.65rem\], .text-\[0\.7rem\], .text-\[10px\], .text-\[11px\], .text-\[12px\], .text-lg, .text-xl) { color: var(--ftm-crimson-on-light) !important; }
/* ...but a dark card inside a light section is dark again */
:is(.bg-\[\#f5f0eb\], .bg-white) :is(.bg-obsidian, .bg-obsidian-deep, .bg-\[\#0e0a08\], .bg-\[\#1a1410\]) .text-crimson:is(.text-xs, .text-sm, .text-base, .text-\[0\.6rem\], .text-\[0\.65rem\], .text-\[0\.7rem\], .text-\[10px\], .text-\[11px\], .text-\[12px\], .text-lg, .text-xl) { color: var(--ftm-crimson-on-dark) !important; }

/* ---------- Readability: white text on crimson buttons ---------- */
.bg-crimson.text-white, section.bg-crimson { background-color: var(--ftm-crimson-btn); }
section.bg-crimson .text-white { opacity: 1 !important; }
/* The founder section's red sub-heading used the theme's dull "destructive" red (3.3:1 on cream). */
:is(.bg-\[\#f5f0eb\], .bg-white, .bg-\[hsl\(var\(--alabaster\)\)\], .bg-\[hsl\(var\(--muted\)\)\]) .text-\[hsl\(var\(--destructive\)\)\] { color: var(--ftm-crimson-on-light) !important; }
.bg-crimson.text-white.hover\:bg-crimson-glow:hover { background-color: var(--ftm-crimson); }
/* Small pink category badges on light cards */
:root body .bg-\[\#c8324a\]\/10.text-\[\#c8324a\] { color: hsl(351 76% 40%) !important; }

/* ---------- Touch: bigger tap areas without changing the look ---------- */
/* Slideshow dots (6-8px) and small text links/buttons get an invisible 40px+ hit area. */
:is(button.rounded-full:is(.h-2, .h-1\.5), :is(a, button).inline-flex.text-xs, button.text-xs, a.inline-flex.items-center.gap-2, a.hover\:text-\[\#c8324a\]:has(> svg:only-child)):not([class*="after:"]) { position: relative; }
:is(button.rounded-full:is(.h-2, .h-1\.5), :is(a, button).inline-flex.text-xs, button.text-xs, a.inline-flex.items-center.gap-2, a.hover\:text-\[\#c8324a\]:has(> svg:only-child)):not([class*="after:"])::after { content: ""; position: absolute; inset: -12px -6px; }
button.rounded-full:is(.h-2, .h-1\.5):not([class*="after:"])::after { inset: -16px -4px; }

/* ---------- Bugs inherited from the Base44 build ---------- */
/* The (empty) toast container spans the top 32px of every phone screen and swallowed taps on the header. */
.fixed.top-0.z-\[100\].flex.max-h-screen { pointer-events: none; }
.fixed.top-0.z-\[100\].flex.max-h-screen > :not(.max-h-screen) { pointer-events: auto; }
/* A floating "back" arrow sat on top of the logo on some pages; the logo already links home. */
a.fixed.top-6.left-6.z-\[60\] { display: none; }

/* ---------- Alignment ---------- */
/* Advocacy hero: the headline was right-aligned while the label, text and buttons around it are centred. */
.text-center > h1.text-right { text-align: center; }
/* About, "A Personal Gift" card: it inherits a centred column, which pushed the title off-centre next to its
   heart icon. The icon + title row and the intro read left, like the gift buttons below them. */
.flex.items-center.gap-3.mb-4:has(> .rounded-full.bg-crimson\/15) > div:last-child,
div:has(> .flex.items-center.gap-3.mb-4 > .rounded-full.bg-crimson\/15) > p.text-sm { text-align: left; }
/* Give: on phones the "Most impactful" tag wrapped "Give monthly" onto three lines; put it on its own line. */
@media (max-width: 639px) { button > span.ml-1\.5.text-\[0\.6rem\] { display: block; margin: 3px 0 0; } }
/* Small crimson labels over a hero photo are on a dark image even when the page around them is light. */
:is(.bg-\[\#f5f0eb\], .bg-white) .absolute.inset-0 .text-crimson:is(.text-xs, .text-sm, .text-\[0\.65rem\], .text-\[0\.7rem\]) {
  color: var(--ftm-crimson-on-dark) !important; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
