/* ============================================================
   Conference.care — site base
   Design-system tokens (colors_and_type.css) + shared chrome
   (reset, type, buttons, nav, footer, scroll-reveal, motifs,
   marquee, route cards, testimonials, callout) forked from the
   homepage design's home-base.css. Paths adjusted for /assets/css/.
   ============================================================ */
@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-VariableFont_wght.ttf') format('truetype-variations'),
       url('../fonts/Onest-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* ---- Core palette (the "CC" blues) ---- */
  --cc-navy:#225278; --cc-mid:#2B648C; --cc-blue:#3E8AB5; --cc-accent:#438FB9;
  --cc-light:#67B8DC; --cc-pale:#DCEBF4; --cc-paler:#EEF4F9; --cc-bg:#F5F6FA;
  --cc-footer:#1C4159;
  --cc-ink:#283641; --cc-ink-soft:#5a6b78;
  --cc-ink-sky:#67B8DC;   /* light sky blue used as an ink/eyebrow colour (matches print collateral) */
  --cc-eyebrow:var(--cc-ink-sky);

  /* ---- Semantic surfaces ---- */
  --surface:#ffffff; --surface-tint:var(--cc-paler);
  --border:#e7eef4; --border-soft:#eef2f6; --border-input:#d4dde5;

  /* ---- Status (brand ships green + amber; rest harmonised) ---- */
  --ok:#2e8b57; --ok-bright:#3fae6a;
  --success-fg:#1f7a4d; --success-solid:#2e8b57; --success-bg:#e7f4ec; --success-border:#bfe3cf;
  --info-fg:#2b648c; --info-solid:#438fb9; --info-bg:#eef4f9; --info-border:#cfe0ec;
  --warn-fg:#9a6a17; --warn-solid:#c8881a; --warn-bg:#fff4e2; --warn-border:#f0d9a8;
  --danger-fg:#a8362c; --danger-solid:#b23b30; --danger-bg:#fbecea; --danger-border:#f0c9c4;

  /* ---- Gradients ---- */
  --grad-deep: linear-gradient(135deg, #225278, #2B648C 55%, #347aa6);
  --grad-hero: linear-gradient(150deg, #1C4159 0%, #225278 42%, #2B648C 78%, #347aa6 100%);
  --grad-line: linear-gradient(90deg, var(--cc-navy), var(--cc-light));
  --grad-primary: linear-gradient(135deg, var(--cc-light), var(--cc-accent));
  --grad-chip: linear-gradient(135deg, var(--cc-mid), var(--cc-light));
  --grad-ok: linear-gradient(135deg, #2e8b57, #3fae6a);

  /* ---- Shadows (navy-tinted, never neutral grey) ---- */
  --sh-sm: 0 2px 6px rgba(34,82,120,.07);
  --sh-md: 0 8px 24px rgba(34,82,120,.10);
  --sh-lg: 0 18px 44px rgba(34,82,120,.16);
  --sh-xl: 0 30px 70px rgba(22,56,78,.28);

  /* ---- Radii ---- */
  --radius:18px; --radius-md:16px; --radius-sm:12px; --radius-xs:9px; --radius-pill:999px;

  /* ---- Motion / layout ---- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --wrap-max:1180px;
  font-synthesis:none;
}

* { box-sizing:border-box; }
/* overflow-x:clip (not hidden) on the root clips the off-edge motif spheres
   horizontally without creating a scroll container or breaking sticky/pin. */
html { scroll-behavior:smooth; scroll-padding-top:88px; overflow-x:clip; }
body {
  margin:0; background:#fff; color:var(--cc-ink);
  font-family:'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:clip;
}
a { color:var(--cc-accent); text-decoration:none; }
img { max-width:100%; display:block; }
h1,h2,h3,h4 { color:var(--cc-navy); letter-spacing:-.01em; line-height:1.12; margin:0; }

.wrap { max-width:var(--wrap-max); margin:0 auto; padding:0 24px; position:relative; z-index:1; }
.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; }

/* ============================================================
   Decorative motifs — logomark-dot circles, mono watermark,
   corner glows. Always behind content, pointer-events:none.
   ============================================================ */
.has-deco { position:relative; overflow:hidden; }
/* Bleed variant: motif spheres are NOT clipped to the section, so big soft
   circles flow across the seam into the neighbouring band instead of being
   sliced off at a hard edge. Horizontal overflow is still caught by
   body{overflow-x:hidden}. Use on full-width bands (not on rounded cards,
   which need the clip). */
.has-deco-bleed { position:relative; }
.has-deco-bleed .cc-deco { overflow:visible; }
.cc-deco { position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.cc-deco > * { position:absolute; }
.cc-orb { border-radius:50%; filter:blur(2px); }
/* Big soft sphere — the signature print-collateral motif: large, low-opacity
   circles with a soft inner highlight, usually bleeding off a section edge.
   Fill the colour via the variant; size + position inline. */
.cc-sphere { border-radius:50%; }
.cc-sphere.sky  { background:radial-gradient(circle at 38% 34%, rgba(103,184,220,.22), rgba(103,184,220,.06) 66%, rgba(103,184,220,0) 72%); }
.cc-sphere.blue { background:radial-gradient(circle at 38% 34%, rgba(67,143,185,.18), rgba(67,143,185,.05) 66%, rgba(67,143,185,0) 72%); }
.cc-sphere.pale { background:radial-gradient(circle at 38% 34%, rgba(220,235,244,.85), rgba(220,235,244,.28) 62%, rgba(220,235,244,0) 70%); }
.cc-sphere.ondark { background:radial-gradient(circle at 38% 34%, rgba(103,184,220,.16), rgba(103,184,220,.04) 64%, rgba(103,184,220,0) 72%); }
.cc-glow { border-radius:50%; filter:blur(70px); }
.cc-ring { border-radius:50%; border:2px solid currentColor; }
.cc-tri { width:var(--tri,180px); aspect-ratio:1/0.62; }
.cc-tri i { position:absolute; border-radius:50%; background:currentColor; }
.cc-tri i:nth-child(1){ width:24%; aspect-ratio:1; left:38%; top:0; }
.cc-tri i:nth-child(2){ width:24%; aspect-ratio:1; left:0;   top:55%; }
.cc-tri i:nth-child(3){ width:24%; aspect-ratio:1; right:0;  top:55%; }
.cc-wm {
  -webkit-mask:url(../logo/confcare-mark-mono.svg) no-repeat center / contain;
  mask:url(../logo/confcare-mark-mono.svg) no-repeat center / contain;
  background:currentColor;
}
/* Inline monotone-logomark watermark (the reliable approach — masking an
   external SVG whose fills are currentColor renders nothing in Chrome).
   Size via width on .cc-mark; tint via color; fade via opacity. */
.cc-mark { line-height:0; pointer-events:none; }
.cc-mark .cc-mark-svg { width:100%; height:auto; display:block; fill:currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .cc-float { animation:cc-bob 9s ease-in-out infinite; }
  .cc-float.slow { animation-duration:13s; }
  .cc-float.alt { animation-direction:alternate-reverse; }

  /* Section background spheres drift gently and continuously — a slow float.
     Variants move at different speeds/directions so they're not in lockstep.
     In-card spheres (e.g. the CTA card) are excluded — they stay still. */
  .cc-sphere { animation:cc-drift 19s ease-in-out infinite; will-change:transform; }
  .cc-sphere.pale   { animation-duration:24s; animation-direction:alternate; }
  .cc-sphere.sky    { animation-duration:17s; }
  .cc-sphere.blue   { animation-duration:21s; animation-direction:alternate-reverse; }
  .cc-sphere.ondark { animation-duration:22s; animation-direction:alternate-reverse; }
  .cta-card .cc-sphere { animation:none; will-change:auto; }
}
@keyframes cc-bob { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-16px); } }
@keyframes cc-drift {
  0%   { transform:translate(0,0); }
  25%  { transform:translate(16px,-20px); }
  50%  { transform:translate(-6px,-30px); }
  75%  { transform:translate(-18px,-12px); }
  100% { transform:translate(0,0); }
}

.eyebrow { font-size:1.05rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--cc-eyebrow); margin:0 0 16px; }
.eyebrow.on-dark { color:var(--cc-light); }
/* .section-head p / .sol-split p (element+class rules) would otherwise
   out-specify .eyebrow and recolour/resize the subheads — pin colour + size
   back so every eyebrow is the same sky-blue ink at the same size. */
.section-head .eyebrow, .sol-split .eyebrow { color:var(--cc-eyebrow); font-size:1.05rem; }
.section-head .eyebrow.on-dark, .sol-split .eyebrow.on-dark { color:var(--cc-light); }
.rule { width:64px; height:4px; border-radius:3px; background:var(--grad-line); }

.section-head { max-width:760px; margin:0 auto 52px; text-align:center; }
.section-head h2 { font-size:clamp(1.7rem,3.4vw,2.5rem); font-weight:800; }
.section-head p { color:var(--cc-ink-soft); font-size:1.08rem; margin:16px 0 0; }
.section-head .rule { margin:20px auto 0; }

section.block { padding:96px 0; }
.bg-white { background:#fff; }
.bg-pale { background:linear-gradient(180deg, var(--cc-paler), #fff); }
.bg-tint { background:var(--cc-paler); }

/* ---- Buttons ---- */
.btn {
  display:inline-flex; align-items:center; gap:9px; font:inherit; font-weight:700;
  font-size:1rem; cursor:pointer; border:0; border-radius:12px; padding:15px 28px;
  transition:transform .14s var(--ease), box-shadow .14s var(--ease), background .2s, color .2s;
  white-space:nowrap;
}
.btn svg { width:19px; height:19px; }
.btn-primary { background:var(--grad-primary); color:#fff; box-shadow:0 12px 26px rgba(67,143,185,.38); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 18px 36px rgba(67,143,185,.5); }
.btn-solid { background:var(--grad-deep); color:#fff; box-shadow:0 12px 26px rgba(34,82,120,.32); }
.btn-solid:hover { transform:translateY(-2px); box-shadow:0 18px 38px rgba(34,82,120,.42); }
.btn-ghost { background:rgba(255,255,255,.12); color:#fff; border:1.5px solid rgba(255,255,255,.55); backdrop-filter:blur(4px); }
.btn-ghost:hover { background:rgba(255,255,255,.22); transform:translateY(-2px); }
.btn-outline { background:#fff; color:var(--cc-navy); border:1.5px solid #d4dde5; }
.btn-outline:hover { border-color:var(--cc-light); transform:translateY(-2px); box-shadow:var(--sh-sm); }
.btn-lg { font-size:1.08rem; padding:17px 34px; }

/* ---- Nav ---- */
.nav { position:fixed; top:0; left:0; right:0; z-index:100; padding:18px 0;
  transition:background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease); }
.nav .wrap { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.nav .logo { height:36px; width:auto; }
.nav .logo.colour { display:none; }
.nav-links { display:flex; align-items:center; gap:30px; }
.nav-links a.link { color:rgba(255,255,255,.9); font-weight:600; font-size:.94rem; transition:color .2s; }
.nav-links a.link:hover { color:#fff; }
.nav .btn { padding:11px 22px; font-size:.92rem; }
.nav.scrolled { background:rgba(255,255,255,.92); backdrop-filter:blur(12px); box-shadow:var(--sh-sm); padding:12px 0; }
.nav.scrolled .logo.white { display:none; }
.nav.scrolled .logo.colour { display:block; }
.nav.scrolled .nav-links a.link { color:var(--cc-ink); }
.nav.scrolled .nav-links a.link:hover { color:var(--cc-navy); }
.nav.scrolled .btn-ghost { color:var(--cc-navy); border-color:var(--cc-accent); background:transparent; }
.nav.on-light .logo.white { display:none; }
.nav.on-light .logo.colour { display:block; }
.nav.on-light .nav-links a.link { color:var(--cc-ink); }
.nav.on-light .btn-ghost { color:var(--cc-navy); border-color:var(--cc-accent); background:transparent; }
.nav-toggle { display:none; width:42px; height:42px; border-radius:10px; border:1.5px solid rgba(255,255,255,.5);
  background:rgba(255,255,255,.12); cursor:pointer; align-items:center; justify-content:center; flex:none; }
.nav-toggle svg { width:22px; height:22px; stroke:#fff; fill:none; stroke-width:2; }
.nav.scrolled .nav-toggle, .nav.on-light .nav-toggle { border-color:var(--cc-accent); background:transparent; }
.nav.scrolled .nav-toggle svg, .nav.on-light .nav-toggle svg { stroke:var(--cc-navy); }

/* ---- Icon chip ---- */
.chip-ic { width:54px; height:54px; border-radius:14px; flex:none; display:flex; align-items:center; justify-content:center; background:var(--grad-chip); margin-bottom:18px; }
.chip-ic svg { width:27px; height:27px; stroke:#fff; fill:none; stroke-width:2; }
.chip-ic.pale { background:var(--cc-pale); }
.chip-ic.pale svg { stroke:var(--cc-navy); }

/* ---- Logo marquee ---- */
.logos-band { padding:56px 0; background:#fff; border-top:1px solid #eef2f6; border-bottom:1px solid #eef2f6; }
.logos-lead { text-align:center; color:var(--cc-ink-soft); font-weight:600; font-size:.95rem; letter-spacing:.01em; margin:0 0 30px; }
.marquee { position:relative; overflow:hidden; -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* No flex `gap` — gap adds a half-unit at the -50% loop seam and makes the
   marquee stutter. Per-logo horizontal margin keeps both halves identical so
   the loop is seamless. */
.marquee-track { display:flex; width:max-content; animation:marquee 46s linear infinite; will-change:transform; }
.marquee:hover .marquee-track { animation-play-state:paused; }
@keyframes marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }
/* Naked logos — no card, just the mark on the band. */
.logo-chip { flex:none; height:62px; margin:0 38px; display:flex; align-items:center; justify-content:center; }
.logo-chip img { max-height:42px; max-width:185px; width:auto; height:auto; object-fit:contain; display:block; }

/* ---- Audience route cards ---- */
.routes-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.route-card { display:flex; flex-direction:column; background:#fff; border:1px solid #e7eef4; border-radius:var(--radius); padding:26px 22px 22px; box-shadow:var(--sh-sm); transition:transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; position:relative; overflow:hidden; }
.route-card::after { content:""; position:absolute; left:0; right:0; top:0; height:4px; background:var(--grad-line); transform:scaleX(0); transform-origin:0 50%; transition:transform .25s var(--ease); }
.route-card:hover { transform:translateY(-5px); box-shadow:var(--sh-md); border-color:var(--cc-light); }
.route-card:hover::after { transform:scaleX(1); }
.route-card .chip-ic { width:48px; height:48px; margin-bottom:16px; }
.route-card .chip-ic svg { width:24px; height:24px; }
.route-card h3 { font-size:1.12rem; margin:0 0 8px; }
.route-card p { font-size:.92rem; color:var(--cc-ink-soft); margin:0 0 18px; flex:1; }
.route-link { display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:.9rem; color:var(--cc-accent); margin-top:auto; }
.route-link svg { width:16px; height:16px; transition:transform .2s var(--ease); }
.route-card:hover .route-link svg { transform:translateX(4px); }

/* ---- Testimonials (card) ---- */
.tcard { background:#fff; border:1px solid #e7eef4; border-radius:var(--radius); padding:38px 34px; box-shadow:var(--sh-sm); position:relative; overflow:hidden; display:flex; flex-direction:column; height:100%; transition:transform .2s var(--ease), box-shadow .2s var(--ease); }
.tcard:hover { transform:translateY(-4px); box-shadow:var(--sh-md); }
/* Decorative opening quote, in-flow above the quote text */
.tcard .qmark { font-family:Georgia,serif; font-size:5rem; color:var(--cc-pale); line-height:.5; height:42px; }
.tcard blockquote { margin:0; font-size:1.02rem; color:var(--cc-ink); line-height:1.6; flex:1; position:relative; z-index:1; }
.tcard .who { display:flex; align-items:center; gap:14px; margin-top:26px; padding-top:22px; border-top:1px solid #eef2f6; position:relative; z-index:1; }
.tcard .avatar { width:50px; height:50px; border-radius:50%; flex:none; background:var(--grad-chip); color:#fff; font-weight:800; font-size:1.05rem; display:flex; align-items:center; justify-content:center; letter-spacing:.02em; }
.tcard .name { font-weight:800; color:var(--cc-navy); font-size:.98rem; }
.tcard .role { font-size:.84rem; color:var(--cc-ink-soft); }

/* ---- Callout ---- */
.callout { border-left:5px solid var(--cc-light); background:var(--cc-paler); border-radius:0 12px 12px 0; padding:16px 22px; color:var(--cc-mid); }
.callout strong { color:var(--cc-navy); }

/* ---- Footer ---- */
.site-foot { background:var(--cc-footer); color:rgba(255,255,255,.78); padding:64px 0 30px; font-size:.92rem; }
.foot-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px; align-items:start; }
.foot-grid .logo { height:38px; margin-bottom:18px; }
.foot-grid p { margin:0 0 10px; max-width:30em; line-height:1.6; }
.foot-col h4 { color:#fff; font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; margin:0 0 16px; }
.foot-col a { display:block; color:rgba(255,255,255,.78); margin-bottom:10px; transition:color .2s; }
.foot-col a:hover { color:#fff; }
.foot-bottom { border-top:1px solid rgba(255,255,255,.14); margin-top:44px; padding-top:22px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.82rem; color:rgba(255,255,255,.6); }
.foot-bottom a { color:rgba(255,255,255,.6); }
.foot-bottom a:hover { color:#fff; }

/* ---- Scroll reveal (CSS fallback; GSAP enhances when present) ---- */
.js .reveal { opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); will-change:opacity,transform; }
.js .reveal.in { opacity:1; transform:none; }
.js .reveal.d1 { transition-delay:.08s; }
.js .reveal.d2 { transition-delay:.16s; }
.js .reveal.d3 { transition-delay:.24s; }
.js .reveal.d4 { transition-delay:.32s; }
.scroll-progress { position:fixed; top:0; left:0; right:0; height:3px; z-index:200; transform:scaleX(0); transform-origin:0 50%; background:linear-gradient(90deg, var(--cc-light), var(--cc-accent), var(--cc-light)); pointer-events:none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .js .reveal { opacity:1 !important; transform:none !important; }
  .scroll-progress { display:none; }
  * { animation:none !important; }
}

/* ---- Responsive shared ---- */
@media (max-width:1000px) {
  .routes-grid { grid-template-columns:repeat(2,1fr); }
  .foot-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:860px) {
  .nav-links { display:none; }
  .nav-links.open { display:flex; flex-direction:column; position:absolute; top:100%; right:24px;
    background:#fff; border-radius:14px; box-shadow:var(--sh-lg); padding:18px 22px; gap:14px; align-items:flex-start; min-width:230px; }
  .nav-links.open a.link { color:var(--cc-ink); }
  .nav-toggle { display:inline-flex; }
}
@media (max-width:760px) {
  section.block { padding:64px 0; }
  .routes-grid { grid-template-columns:1fr; }
  .foot-grid { grid-template-columns:1fr; }
}
