/* =========================================================
   Infuzed - minimal site styles
   File: /assets/site.css
   ========================================================= */

/* Reset-ish basics */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-feature-settings: "kern","liga","clig","calt"; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: #111;
  background: #fff;
}

/* Light/Dark modes */
@media (prefers-color-scheme: dark) {
  body { color: #e7e7e7; background: #0b0c0d; }
  a { color: #a9d1ff; }
  .site-header, .site-footer { background: #111315; color: #e7e7e7; }
  .primary-nav a { color: #e7e7e7; }
  .primary-nav a[aria-current="page"] { color: #8bc0ff; border-color: #8bc0ff; }
}

/* Typography & links */
h1,h2,h3 { line-height: 1.25; margin: 0.6em 0 0.3em; }
p, ul, ol { margin: 0.6em 0; }
a { color: #0b63d1; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Focus rings (keyboard friendly) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #0b63d1;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Layout wrappers */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #0b63d1; color: #fff; padding: 8px 12px; z-index: 1000;
  border-radius: 4px; transform: translateY(-8px);
}
.skip-link:focus { left: 8px; transform: translateY(8px); }

/* Header */
.site-header { background: #fafafa; border-bottom: 1px solid #e8e8e8; }
.site-header .brand {
  display: inline-block; padding: 14px 0; font-weight: 700; letter-spacing: .2px;
  color: inherit; text-decoration: none;
}

/* Primary nav */
.primary-nav { border-top: 1px solid rgba(0,0,0,0.05); }
.primary-nav ul {
  display: flex; gap: 18px; list-style: none; margin: 0; padding: 10px 0;
  flex-wrap: wrap;
}
.primary-nav a {
  display: inline-block; padding: 8px 2px; border-bottom: 2px solid transparent;
}
.primary-nav a[aria-current="page"] {
  border-color: #0b63d1; color: #0b63d1;
}

/* Main */
main { display: block; padding: 24px 0 48px; min-height: 260vh; }
main > h1 { margin-top: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
  color: #555;
  font-size: 0.95rem;
}
.site-footer .wrap { padding: 16px; }

/* Buttons (tiny util) */
.btn {
  display: inline-block; padding: 10px 14px; border-radius: 6px;
  background: #0b63d1; color: #fff; text-decoration: none; font-weight: 600;
  transition: transform .06s ease-in-out;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

/* WYSIWYG content */
.wysiwyg img { max-width: 100%; height: auto; }
.wysiwyg blockquote {
  margin: 1em 0; padding: .5em 1em; border-left: 4px solid #0b63d1; background: rgba(11,99,209,0.05);
}
.wysiwyg h2,h3 { margin-top: 1.2em; }

/* CTA block */
.cta {
  margin: 24px 0; padding: 20px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(11,99,209,0.07), rgba(11,99,209,0.03));
  border: 1px solid rgba(11,99,209,0.15);
}
.cta h2 { margin: 0 0 8px; }
.cta .btn { margin-top: 6px; }

/* Regions (optional visual guidance during build) */
section[data-region] { margin: 20px 0; }
section[data-region="sidebar"] { opacity: .95; }

/* Forms minimal */
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; width: 100%;
  background: #fff; color: inherit;
}
label { display: block; margin: 10px 0 4px; }
button, input[type="submit"] {
  font: inherit; padding: 10px 14px; border: 0; border-radius: 6px; background: #111; color: #fff;
}
button:hover, input[type="submit"]:hover { filter: brightness(1.05); }

/* Small media query */
@media (max-width: 720px) {
  .primary-nav ul { gap: 12px; }
  .btn { width: auto; }
}

/* HTMX progress bar (top) */
.htmx-indicator,
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: block; }
.htmx-indicator {
  position: fixed; left: 0; top: 0; height: 3px; width: 0;
  background: #0b63d1; z-index: 9999; transition: width .3s ease;
}
.htmx-request .htmx-indicator { width: 65%; }
.htmx-request.htmx-indicator.done { width: 100%; transition: width .15s ease; }

/* Return to top */
.to-top {
  position: fixed;
  right: 1rem;           /* move to left:1rem if you prefer */
  bottom: 1rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--to-top-border, #d0d4d9);
  background: var(--to-top-bg, #fff);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
  opacity: 0;
  transform: translateY(6px);
}
.to-top:hover { transform: translateY(0); }
.to-top img { display:block; pointer-events:none; }

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode friendly */
@media (prefers-color-scheme: dark) {
  .to-top {
    --to-top-bg: #15171a;
    --to-top-border: #2a2f36;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}

/* ===== Cookie consent (centered modal) ===== */
/* Cookie consent — minimal layout */
.cc-banner[hidden],
.cc-modal[hidden],
#cc-reopen[hidden] { display: none !important; }

.cc-banner {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.4); z-index: 9999; padding: 2rem;
}
.cc-banner .cc-inner {
  max-width: 640px; width: 100%;
  background: #fff; color: #111; border-radius: 8px;
  padding: 1.25rem 1.25rem 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.cc-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.cc-btn { padding: .55rem .9rem; border-radius: 6px; border: 1px solid #ccc; background: #f6f6f6; cursor: pointer; }
.cc-btn:hover { background: #eee; }

.cc-note { font-size: .9rem; color: #555; margin-top: .5rem; }

.cc-modal {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.45); z-index: 10000; padding: 2rem;
}
.ccm-dialog {
  width: min(720px, 100%); background: #fff; color: #111; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3); overflow: hidden;
}
.ccm-head, .ccm-foot { padding: .9rem 1rem; background: #fafafa; border-bottom: 1px solid #eee; }
.ccm-foot { border-top: 1px solid #eee; border-bottom: none; display: flex; gap: .5rem; justify-content: flex-end; }
.ccm-body { padding: 1rem; }
.ccm-close { border: none; background: transparent; font-size: 1.25rem; cursor: pointer; float: right; }

.cc-group { margin: 1rem 0; }
.cc-row { display: flex; gap: .5rem; align-items: center; }

.cc-reopen {
  position: fixed; bottom: 16px; left: 16px; z-index: 1000;
  padding: .5rem .75rem; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer;
}


/* maps button if not authenticated */
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}


/* Test page CSS */

    :root{--mx:auto;--brand:#0a0a0a;--ink:#111;--ink-soft:#444;--paper:#fff;--accent:#0ea5e9;--radius:14px}
    @media (prefers-color-scheme: dark){:root{--paper:#0b0b0b;--ink:#e9e9e9;--ink-soft:#b8b8b8;--brand:#ffffff;}}
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,'Noto Sans',sans-serif;line-height:1.6;background:var(--paper);color:var(--ink)}
    a{color:var(--accent)}
    .container{max-width:1120px;margin:0 auto;padding:1rem 1.25rem}
    header{background:linear-gradient(180deg, rgba(14,165,233,.08), transparent)}
    .topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem}
    nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0}
    nav a{display:inline-block;padding:.6rem .9rem;border-radius:999px;text-decoration:none;color:var(--ink);border:1px solid rgba(0,0,0,.06)}
    nav a[aria-current="page"], nav a:hover{background:var(--accent);color:#fff;border-color:transparent}
    .skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
    .skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:#000;color:#fff;padding:.5rem .75rem;border-radius:8px;z-index:1000}
    .hero{padding:2.5rem 0}
    .hero h1{font-size:clamp(2rem,4.5vw,3rem);line-height:1.15;margin:.4rem 0 .75rem}
    .grid{display:grid;gap:1.25rem}
    .grid.cols-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
    .card{border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.6);backdrop-filter:saturate(180%) blur(4px);border-radius:var(--radius);padding:1rem}
    @media (prefers-color-scheme: dark){.card{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}}
    .section{padding:2.25rem 0}
    h2{font-size:clamp(1.5rem,3.5vw,2rem);margin:.2rem 0 1rem}
    h3{font-size:1.125rem;margin:.2rem 0 .5rem}
    .badge{display:inline-block;border:1px solid currentColor;padding:.25rem .6rem;border-radius:999px;font-size:.825rem}
    .contact-cta{display:grid;grid-template-columns:1fr;gap:1rem}
    .contact-cta form{display:grid;gap:.75rem}
    input, textarea, button{font:inherit}
    input, textarea{padding:.75rem;border-radius:12px;border:1px solid rgba(0,0,0,.15);background:transparent;color:inherit}
    input:focus, textarea:focus{outline:3px solid rgba(14,165,233,.4);border-color:var(--accent)}
    button{padding:.85rem 1rem;border-radius:999px;border:0;background:var(--accent);color:#fff;cursor:pointer}
    button:hover{filter:brightness(.95)}
    footer{border-top:1px solid rgba(0,0,0,.1);padding:2rem 0;margin-top:2rem}
    .visually-hidden{position:absolute;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap;border:0;padding:0}