/* Designed and developed by Nodix, a division of FTK Technologies, ftktechnologies@gmail.com */
/* FACHS BRAND CSS. One file for every FACHS site (Group, School, College, Advisory, Insurance, Training).
   Master copy: Brand/brand.css. Change it there, then copy it into each site as brand.css. Style guide: Brand/brand-guide.html.
   Part 1 is the tokens: colours, type, scale, radius. Part 2 is the base styles: body, headings, text, links, buttons, menu links, forms.
   A site's own style.css only does layout. It never sets its own font, font-size, heading, link, button or form look. */
:root {
  /* FACHS palette (13 Nov 2026): navy and purple plus five shades each, and five greys. Nothing else.
     Night 50/200/400/700/900, purple (crimson) 50/200/600/700/800, grey 50/200/400/600/700, white. */
  /* Blues */
  --fachs-navy-900: #181f3f;   /* brand sheet Navy Blue, RGB 24 31 63 */
  /* Night: one tonal scale built from the brand navy (#181f3f). 900 is the hero ground; go lighter for panels, borders and tints, darker for deep grounds. */
  --fachs-night-900: #181f3f;
  --fachs-night-700: #314172;
  --fachs-night-400: #909fcb;
  --fachs-night-200: #dbe0f0;
  --fachs-night-50:  #f6f7fb;
  /* Crimson: the action colour. Buttons, links on light grounds, the logo flash. Official brand sheet (9 Nov 2026): Purple #970E38, Navy #181F3F. */
  --fachs-crimson-600: #970e38; /* brand sheet Purple, RGB 151 14 56 */
  --fachs-crimson-700: #7d0c2e;
  /* Neutrals */
  --fachs-ink: #5c5c5c;   /* body copy: grey 600 (toned down from grey 700 on 16 Nov 2026) */
  --fachs-white: #ffffff;
  /* Type: Open Sans is on all four sampled sites. Montserrat is the school's heading face
     and sits closest to the Varela Round and Poppins the other sites use. */
  --fachs-font-head: "Montserrat", "Varela Round", system-ui, sans-serif;
  --fachs-font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fachs-font-code: var(--fachs-font-head);   /* small labels in capitals use the heading face; no third typeface */
  /* Type scale: seven sizes for every FACHS site, plus two hero sizes (title, hero-lead) below. Set no font-size outside these.
     The names are WordPress theme.json font-size slugs (x-small to xxx-large). In a WordPress theme, theme.json (fachs-theme.json
     in this folder) sets --wp--preset--font-size--* and these tokens follow it; on a static site the clamp() fallback applies.
     Each size grows with screen width; the larger ones are also capped by screen height so they fit a short laptop. */
  --fachs-font-size-x-small:   var(--wp--preset--font-size--x-small, clamp(.75rem, .73rem + .05vw, .8125rem));               /* 12–13px  captions, labels in capitals, dates, fine print, footer and legal links */
  --fachs-font-size-small:     var(--wp--preset--font-size--small, clamp(.875rem, .85rem + .1vw, .9375rem));                   /* 14–15px  card text, job titles, form labels, menus, tables, secondary lines */
  --fachs-font-size-medium:    var(--wp--preset--font-size--medium, clamp(1rem, .97rem + .1vw, 1.0625rem));               /* 16–17px  body text, buttons, form fields (never below 16px, so iOS does not zoom) */
  --fachs-font-size-large:     var(--wp--preset--font-size--large, clamp(1rem, .96rem + .2vw, 1.125rem)); /* 16–18px  lead paragraph under a heading, card titles, FAQ questions, names */
  --fachs-font-size-x-large:   var(--wp--preset--font-size--x-large, clamp(1rem, .95rem + .25vw, 1.125rem));        /* 16–18px (Boston h3 16px)  sub-headings (h3), pop-up titles */
  --fachs-font-size-xx-large:  var(--wp--preset--font-size--xx-large, clamp(1.25rem, 1.12rem + .55vw, 1.5rem));    /* 20–24px (Boston h2 22px)  section headings (h2) */
  --fachs-font-size-xxx-large: var(--wp--preset--font-size--xxx-large, clamp(1.875rem, min(1rem + 3vw, 7vh), 3.25rem));      /* 30–52px  the home page h1 / hero headline; kept large so it stands out (16 Nov 2026) */
  --fachs-font-size-title:     clamp(1.625rem, min(1.1rem + 1.8vw, 5.5vh), 2.375rem);                                      /* 26–38px  the h1 of inner pages (banners, grade, phase, about, fees, legal); bigger than h2 so it stands out */
  --fachs-font-size-hero-lead: clamp(1.0625rem, 1rem + .25vw, 1.25rem);                                                    /* 17–20px  the paragraph under a hero or banner h1 */
  /* Line height and letter spacing that go with the sizes */
  --fachs-line-height-tight: 1.1;   /* h1, h2 */
  --fachs-line-height-snug:  1.3;   /* h3, card titles, labels */
  --fachs-line-height-body:  1.55;  /* paragraphs */
  --fachs-letter-spacing-display: -.015em; /* h1, h2 */
  --fachs-letter-spacing-caps:    .08em;   /* small labels in capitals */
  /* One radius system */
  --fachs-radius: 6px;

  /* Cards (business and leadership cards, 28 Oct 2026). Text inside a card uses the type tokens above and never scales with the card;
     only the padding, the logo plate height and the card grid gap follow the card width (cqw, so the rule needs container-type: inline-size
     on the card). Five cards sit in one row from 700px and shrink in proportion; below that they stack. */
  --fachs-card-pad:      clamp(.8rem, 7cqw, 1.3rem);     /* inner padding of a card */
  --fachs-card-logo:     clamp(3.5rem, 32cqw, 6rem);     /* height of the logo plate at the top of a business card */
  --fachs-card-gap:      clamp(.6rem, 1.3vw, 1.5rem);    /* gap between cards in a row */
  --fachs-card-columns:  5;                              /* cards per row from 700px */
  /* Supporting colours (11 Nov 2026). Built from the brand pair, used for panels, borders, text on white and states. */
  /* Greys: neutral scale. 700 is the body ink. 500 is large text and icons only; use 600 or darker for small text. */
  --fachs-grey-50:  #f9f9f9;
  --fachs-grey-200: #e3e3e3;
  --fachs-grey-400: #a8a8a8;
  --fachs-grey-600: #5c5c5c;
  --fachs-grey-700: #3a3a3a;
  /* Purple shades: 600 is the brand purple. Light shades for tints and hover grounds, dark shades for pressed states. */
  --fachs-crimson-50:  #fbf1f4;
  --fachs-crimson-200: #e6b5c4;
  --fachs-crimson-800: #5f0923;
  /* No sky blue and no state colours (13 Nov 2026). Errors and notices use purple with a written message.
     Focus ring: navy on light grounds, white on dark grounds. Links on dark grounds: white, underlined. */
  --fachs-focus: var(--fachs-navy-900);
  --fachs-link-on-dark: var(--fachs-white);

  /* Light blue (17 Nov 2026): the corporate accent. Used on the corporate sites only. Five shades, 600 is the brand light blue (C79 M11 Y2 K1). */
  --fachs-sky-50:  #edf9fd;
  --fachs-sky-200: #bfe9f7;
  --fachs-sky-400: #73cfed;
  --fachs-sky-600: #00a8df;
  --fachs-sky-700: #0086b2;
  /* Role aliases: use these in components so the meaning stays clear. */
  --fachs-surface:       var(--fachs-white);
  --fachs-surface-alt:   var(--fachs-night-50);
  --fachs-border:        var(--fachs-night-200);
  --fachs-border-strong: var(--fachs-night-400);
  --fachs-text:          var(--fachs-ink);
  --fachs-text-muted:    var(--fachs-grey-600);
  --fachs-heading:       var(--fachs-navy-900);
  --fachs-action:        var(--fachs-crimson-600);
  --fachs-action-hover:  var(--fachs-crimson-700);
}

/* ============ CORPORATE BLUE (17 Nov 2026) ============
   Two blues. School and College keep the navy above (#181f3f). Group, Advisory, Insurance and Training use the corporate blue from the
   FACHS logo sheet (C100 M84 Y3 K1 = #124799) plus the light blue accent (--fachs-sky-*). Switch on with <html data-brand="corporate">.
   Same tokens, new values, so no component changes. Purple stays the action colour on both. */
html[data-brand="corporate"] {
  --fachs-navy-900:  #124799;
  --fachs-night-950: #0b2b5e;   /* deep corporate blue (17 Nov 2026): Group hero ground, same hue as #124799, darker */
  --fachs-night-900: #124799;
  --fachs-night-700: #446cad;
  --fachs-night-400: #a1b5d6;
  --fachs-night-200: #dce3f0;
  --fachs-night-50:  #f6f8fb;
}

/* ============ PART 2: BASE STYLES. Identical on every site. ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--fachs-font-body); font-size: var(--fachs-font-size-medium); line-height: var(--fachs-line-height-body); color: var(--fachs-ink); background: var(--fachs-white); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
/* Headings: h1 home page title, h2 section, h3 sub-section and card title, h4 small title. Same size on every site. */
h1, h2, h3, h4, h5, h6 { font-family: var(--fachs-font-head); color: var(--fachs-navy-900); margin: 0; text-transform: none; }
h1 { font-size: var(--fachs-font-size-xxx-large); line-height: var(--fachs-line-height-tight); letter-spacing: var(--fachs-letter-spacing-display); font-weight: 800; }
h2 { font-size: var(--fachs-font-size-xx-large); line-height: var(--fachs-line-height-tight); letter-spacing: var(--fachs-letter-spacing-display); font-weight: 700; }
h3 { font-size: var(--fachs-font-size-x-large); line-height: var(--fachs-line-height-snug); letter-spacing: 0; font-weight: 700; }
h4 { font-size: var(--fachs-font-size-large); line-height: var(--fachs-line-height-snug); letter-spacing: 0; font-weight: 700; }
h5 { font-size: var(--fachs-font-size-medium); line-height: var(--fachs-line-height-snug); letter-spacing: 0; font-weight: 700; }
h6 { font-size: var(--fachs-font-size-small); line-height: var(--fachs-line-height-snug); letter-spacing: 0; font-weight: 700; }
h3 a, h4 a { color: inherit; text-decoration: none; }
h3 a:hover, h4 a:hover { color: var(--fachs-crimson-600); }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fachs-font-size-large); line-height: var(--fachs-line-height-body); }
.hero .lead, .hero__lead, .banner .lead { font-size: var(--fachs-font-size-hero-lead); }   /* hero and banner text stays larger than body text */
small, .small { font-size: var(--fachs-font-size-small); }
a { color: var(--fachs-crimson-600); text-underline-offset: 3px; }
a:hover { color: var(--fachs-crimson-700); }
/* Links on dark grounds (17 Nov 2026): white, underlined on hover, never purple. Covers every site's footer and dark panels, whatever the site's own rules say. */
:is(footer, .site-footer, .foot, .darkpanel) a:not(.btn):not(.to-top):hover { color: var(--fachs-link-on-dark); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--fachs-focus); outline-offset: 2px; }
/* Dark grounds: white focus ring. */
.on-dark, .section--navy, .hero, .band, .cta, .darkpanel, .site-footer, .foot { --fachs-focus: var(--fachs-white); }
address { font-style: normal; }
/* Buttons: ONE button for every site and every use. Purple, 6px corners, Open Sans bold 16px. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8rem 1.4rem; border: 2px solid var(--fachs-crimson-600); border-radius: var(--fachs-radius); background: var(--fachs-crimson-600); color: var(--fachs-white); font: 700 var(--fachs-font-size-medium)/1.2 var(--fachs-font-body); letter-spacing: 0; text-transform: none; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.btn:hover { background: var(--fachs-crimson-700); border-color: var(--fachs-crimson-700); color: var(--fachs-white); }
.btn:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--fachs-crimson-600); }
.btn--line:hover { background: var(--fachs-crimson-600); border-color: var(--fachs-crimson-600); color: var(--fachs-white); }
.btn--small { padding: .55rem 1rem; font-size: var(--fachs-font-size-small); }
/* On a navy ground the button stays purple, the outline button turns white. */
.on-dark .btn--line, .section--navy .btn--line, .hero .btn--line, .band .btn--line, .cta .btn--line { color: var(--fachs-white); border-color: var(--fachs-white); }
.on-dark .btn--line:hover, .section--navy .btn--line:hover, .hero .btn--line:hover, .band .btn--line:hover, .cta .btn--line:hover { background: var(--fachs-white); color: var(--fachs-navy-900); }
/* Back to top (17 Nov 2026): one button on every FACHS site. Purple square, white border so it shows on blue and purple grounds, white chevron.
   Markup: <a class="to-top" id="to-top" href="#top" aria-label="Back to top" hidden> + the 18px chevron svg. A site may only move it (bottom offset). */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 55; width: 3rem; height: 3rem; display: grid; place-items: center; padding: 0; background: var(--fachs-crimson-600); color: var(--fachs-white); border: 2px solid var(--fachs-white); border-radius: var(--fachs-radius); text-decoration: none; transition: background-color .2s; }
.to-top:hover, .to-top:focus-visible { background: var(--fachs-crimson-700); color: var(--fachs-white); }
.to-top svg { width: 1.25rem; height: 1.25rem; }
.to-top[hidden] { display: none; }
/* FACHS Group strip (17 Nov 2026): the last row of every business site's footer, never in the top nav. Same markup on every site:
   <div class="wrap group-strip"><span>Part of FACHS Group</span><nav aria-label="FACHS Group companies"> links to the other companies </nav></div> */
.group-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .25rem 1.25rem; font-size: var(--fachs-font-size-x-small); color: var(--fachs-night-200); }
.group-strip > span { font-weight: 600; color: var(--fachs-white); }
.group-strip nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.group-strip a, .group-strip a:hover { color: var(--fachs-night-200); text-decoration: none; }
.group-strip a:hover { color: var(--fachs-white); text-decoration: underline; }
/* Menu links: 14 to 15px, semibold, navy; purple underline on hover and on the current page. */
.nav > a:not(.btn), .nav__item > button { font-family: var(--fachs-font-body); font-weight: 600; font-size: var(--fachs-font-size-small); letter-spacing: 0; text-transform: none; color: var(--fachs-navy-900); text-decoration: none; }
.nav > a:not(.btn):hover, .nav > a[aria-current="page"], .nav__item > button:hover, .nav__item.is-active > button { color: var(--fachs-navy-900); }
/* Forms: one look. */
label { font-weight: 600; font-size: var(--fachs-font-size-small); color: var(--fachs-navy-900); }
input, select, textarea { font: var(--fachs-font-size-medium)/1.4 var(--fachs-font-body); color: var(--fachs-ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { width: 100%; min-width: 0; padding: .6rem .75rem; border: 1px solid var(--fachs-night-400); border-radius: var(--fachs-radius); background: var(--fachs-white); }
[aria-invalid="true"] { border-color: var(--fachs-crimson-600); box-shadow: 0 0 0 1px var(--fachs-crimson-600); }
/* Citations: a quote is large text with a hairline rule; the source is small grey text. */
blockquote { margin: 0 0 1em; padding: 0 0 0 1.25rem; border-left: 1px solid var(--fachs-night-200); font-size: var(--fachs-font-size-large); line-height: var(--fachs-line-height-body); color: var(--fachs-ink); max-width: 62ch; }
blockquote p { max-width: none; }
cite, figcaption, .cite { display: block; margin-top: .5rem; font-style: normal; font-size: var(--fachs-font-size-small); color: var(--fachs-grey-600); }
/* Images: 6px corners, no shadow, no border. Ratios: .ratio-16x10 (default photo), .ratio-4x3, .ratio-1x1 (portraits). */
img { display: block; }
.img, figure img { border-radius: var(--fachs-radius); }
.ratio-16x10, .ratio-4x3, .ratio-1x1 { width: 100%; object-fit: cover; }
.ratio-16x10 { aspect-ratio: 16 / 10; } .ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-1x1 { aspect-ratio: 1 / 1; }
/* Cards and panels: hairline border, 6px corners, no shadow. */
.card, .panel { border: 1px solid var(--fachs-night-200); border-radius: var(--fachs-radius); background: var(--fachs-white); padding: clamp(1rem, 2.5vw, 1.5rem); }
.card > img:first-child { border-radius: calc(var(--fachs-radius) - 1px) calc(var(--fachs-radius) - 1px) 0 0; }
.card h3, .card h4 { margin-bottom: .5rem; }
