/* BlueCloud site styles. One small file, no web fonts, no frameworks.
   Colours follow the cloudstad/design visual defaults (Fluent 2 roles, Option B):
   dark is the base; visitors whose device is set to light mode get light. */

:root {
  --canvas: #1f1f1f; --surface: #292929; --surface-2: #141414;
  --text: #ffffff; --text-muted: #d6d6d6;
  --heading: #479ef5; --link: #479ef5;
  --border: #666666; --rule: #adadad;
  --brand: #115ea3; --on-brand: #ffffff; --brand-tint: #082338;
  --focus: #ffffff;
  --navy: #001d4b; /* BlueCloud's existing brand navy */
  --radius: 10px;
  --wrap: 1120px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --canvas: #fafafa; --surface: #ffffff; --surface-2: #f5f5f5;
    --text: #242424; --text-muted: #424242;
    --heading: #0f6cbd; --link: #115ea3;
    --border: #d1d1d1; --rule: #616161;
    --brand: #0f6cbd; --on-brand: #ffffff; --brand-tint: #ebf3fc;
    --focus: #000000;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; line-height: 1.625;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); color: var(--heading); }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .6rem 1rem; background: var(--surface); color: var(--text); border: 2px solid var(--rule); border-radius: 6px; }
.skip:focus { top: .75rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: .5rem 1.5rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.5rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; min-height: 44px; }
.brand svg { width: 2.1rem; height: auto; flex: none; fill: var(--heading); }
.brand .blue { color: var(--heading); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; color: var(--text); text-decoration: none; font-weight: 600; border-radius: 6px; }
.site-nav a:hover { background: var(--brand-tint); }
.site-nav a[aria-current="page"] { color: var(--heading); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-nav .btn { margin-left: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .6rem 1.25rem; border-radius: 8px; font-weight: 650; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--navy); border-color: var(--link); }
.site-nav .btn-primary { color: var(--on-brand); padding: .5rem 1rem; min-height: 44px; }
.site-nav .btn-primary:hover { background: var(--navy); border-color: var(--link); }
.btn-secondary { color: var(--link); border-color: var(--link); background: transparent; }
.btn-secondary:hover { background: var(--brand-tint); }
.btn-light { background: #ffffff; color: var(--navy); }
.btn-light:hover { background: #dbe9fb; }
.btn-ghost { color: #ffffff; border-color: #ffffff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero: the cloud photo the old home page used, under BlueCloud navy */
.hero { --focus: #ffffff; color: #ffffff; background: var(--navy) url("/assets/uploads/2023/01/home-bg.webp") center / cover no-repeat; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,29,75,.95) 0%, rgba(0,29,75,.9) 45%, rgba(0,29,75,.78) 100%); }
.hero .wrap { position: relative; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: #ffffff; max-width: 20ch; }
.hero .lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); line-height: 1.6; color: #ffffff; max-width: 52ch; }
.eyebrow { display: inline-block; margin: 0 0 1rem; font-size: .9375rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #ffffff; }
.hero .eyebrow { border-left: 4px solid #479ef5; padding-left: .65rem; }
.hero-small .wrap { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero-small h1 { margin-bottom: .35em; }
.hero-small .lead { margin-bottom: 0; }
.hero .lead a { color: #ffffff; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--text-muted); font-size: 1.0625rem; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.section-alt .card { background: var(--canvas); }
.card h3 { margin-top: .9rem; }
.card p { margin: 0; color: var(--text-muted); }
.icon { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-tint); color: var(--heading); }
.icon svg { width: 1.6rem; height: 1.6rem; }

.points { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.points li { border-top: 3px solid var(--heading); padding-top: 1rem; }
.points h3 { margin-bottom: .35rem; }
.points p { margin: 0; color: var(--text-muted); }

.split { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; } }
.prose p { font-size: 1.0625rem; line-height: 1.7; }

/* Designations */
.creds { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.cred-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.section-alt .cred-group { background: var(--canvas); }
.cred-group h3 { color: var(--text); }
.cred-group ul { margin: 0; padding: 0; list-style: none; }
.cred-group li { display: flex; gap: .85rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--border); }
.cred-group li:first-child { border-top: 0; }
.cred-group .cred-logo { flex: none; width: 2.5rem; height: 2.5rem; object-fit: contain; background: #ffffff; border: 1px solid var(--border); border-radius: 6px; padding: 2px; }
.cred-group .abbr { display: block; font-weight: 650; }
.cred-group .full { color: var(--text-muted); font-size: .9375rem; }
.cred-verify { margin: 1.25rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.chips li { border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; background: var(--surface); }

/* Partner logos (the logo files have white backgrounds, so they sit on white tiles in both modes) */
.logos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.logos a { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; }
.logos a:hover { border-color: var(--heading); box-shadow: 0 0 0 1px var(--heading); }
.logos img { width: 100%; max-width: 7.5rem; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 720px) { .logos { grid-template-columns: repeat(3, 1fr); gap: .6rem; } .logos a { padding: .4rem; aspect-ratio: 1; } }
.note { color: var(--text-muted); font-size: .9375rem; margin-top: 1rem; }

/* Contact */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); max-width: 52rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h2 { font-size: 1.1875rem; color: var(--text); display: flex; align-items: center; gap: .75rem; }
.contact-card .big { font-size: 1.25rem; font-weight: 650; overflow-wrap: anywhere; margin: 0; }

/* Call to action band */
.cta { --focus: #ffffff; background: var(--navy); color: #ffffff; }
.cta .wrap { padding-top: clamp(2.75rem, 6vw, 4rem); padding-bottom: clamp(2.75rem, 6vw, 4rem); display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.cta h2 { color: #ffffff; margin-bottom: .25rem; }
.cta p { margin: 0; color: #ffffff; }
.cta .btn-row { margin-top: 0; }

/* Footer */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 2.5rem 0 2rem; color: var(--text-muted); font-size: .9375rem; }
.site-footer .wrap { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 721px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { font-size: 1.25rem; }
.site-footer h2 { font-size: 1rem; color: var(--text); margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: .3rem 0; min-height: 24px; }
.site-footer p { margin: 0 0 .4rem; }
.site-footer .legal { grid-column: 1 / -1; max-width: none; border-top: 1px solid var(--border); padding-top: 1.25rem; margin: 0; }

/* Phones */
@media (max-width: 720px) {
  .site-header .wrap { padding-top: .5rem; padding-bottom: .25rem; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { gap: 0; margin: 0 -.8rem; }
  .site-nav .btn { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta .btn-row { width: 100%; }
}

@media (forced-colors: active) {
  .hero::before { display: none; }
  .hero { background-image: none; }
  .btn, .card, .logos a, .cred-group, .contact-card { border: 1px solid CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
@media print {
  .site-nav, .skip, .cta .btn-row, .hero::before { display: none; }
  .hero, .cta { background: none; color: #000; }
  .hero h1, .hero .lead, .cta h2, .cta p, .eyebrow { color: #000; }
}
