/* ==========================================================================
   Hospitalick — modern static site stylesheet
   Design language aligned with BiSkilled.com: light scheme, soft gradients,
   rounded cards, alternating light/dark sections. Vanilla CSS, no framework.
   ========================================================================== */

/* ------------------------------ Design tokens --------------------------- */
:root {
  --brand:        #0a6ca8;   /* Hospitalick healthcare blue */
  --brand-dark:   #003651;   /* deep navy from original brand */
  --brand-light:  #eaf4fb;
  --accent:       #16b8a6;   /* teal accent for AI/health */
  --accent-dark:  #0e8a7d;

  --ink:          #10222e;   /* primary text on light */
  --ink-soft:     #4a5a66;   /* secondary text */
  --ink-invert:   #eaf2f7;   /* text on dark */
  --ink-invert-soft: #a9c4d4;

  --surface:      #ffffff;
  --surface-alt:  #f5f9fc;
  --line:         #e2ecf3;

  --radius:       16px;
  --radius-sm:    12px;
  --radius-lg:    24px;
  --shadow:       0 8px 30px rgba(10, 54, 81, 0.08);
  --shadow-lg:    0 18px 50px rgba(10, 54, 81, 0.16);

  --container:    1160px;
  --gap:          24px;

  --grad-hero:    linear-gradient(135deg, #063a58 0%, #0a6ca8 55%, #16b8a6 130%);
  --grad-soft:    linear-gradient(160deg, #ffffff 0%, #eaf4fb 100%);
  --grad-dark:    linear-gradient(160deg, #043049 0%, #0a4f76 100%);

  --font: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------ Base ------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.3px; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 1rem; padding-left: 1.1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(10,108,168,.25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #04322d; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: #fff; color: var(--brand-dark); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ------------------------------ Header / nav ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--brand-dark); font-size: 1.15rem; }
.nav-brand img { height: 38px; width: auto; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .85rem; border-radius: 8px; color: var(--ink); font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: var(--brand-light); }
.nav-cta { margin-left: .4rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; font-size: 1.5rem; color: var(--brand-dark);
  padding: .4rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .5rem; border-radius: 8px; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ------------------------------ Sections -------------------------------- */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section-alt { background: var(--surface-alt); }
.section-soft { background: var(--grad-soft); }
.section-dark { background: var(--grad-dark); color: var(--ink-invert); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--ink-invert-soft); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem;
  font-weight: 700; color: var(--accent-dark); margin-bottom: .6rem;
}
.section-dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.section-dark .lead { color: var(--ink-invert-soft); }

/* ------------------------------ Hero ------------------------------------ */
.hero {
  background: var(--grad-hero); color: #fff; position: relative; overflow: hidden;
  padding: 104px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 80% 10%, rgba(22,184,166,.35), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-media { display: flex; justify-content: center; }
.hero-copy { max-width: 640px; }
/* Full-bleed photographic hero: real image + navy overlay for text contrast.
   Pick the image with a per-page modifier class (urls are stylesheet-relative,
   which resolves reliably across browsers — a custom-property url() does not). */
.hero.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-photo-home {
  background-image:
    linear-gradient(115deg, rgba(4,32,52,.94) 0%, rgba(6,52,82,.78) 46%, rgba(10,79,118,.52) 100%),
    url('../images/hero/ai-brain.jpg');
}
.hero-photo-healthclick {
  background-image:
    linear-gradient(115deg, rgba(4,32,52,.94) 0%, rgba(6,52,82,.78) 46%, rgba(10,79,118,.52) 100%),
    url('../images/hero/clinician-tablet.jpg');
}
.hero-photo-usecases {
  background-image:
    linear-gradient(115deg, rgba(4,32,52,.94) 0%, rgba(6,52,82,.78) 46%, rgba(10,79,118,.52) 100%),
    url('../images/hero/healthcare-icons.jpg');
}
/* Dark section with a subtle low-poly texture beneath the gradient. */
.section-dark.has-texture {
  background-image:
    linear-gradient(160deg, rgba(4,48,73,.90) 0%, rgba(10,79,118,.90) 100%),
    url('../images/hero/dark-texture.jpg');
  background-size: cover;
  background-position: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero p { max-width: none; }
  .hero-media { display: none; }
}

/* ------------------------------ Cards / grids --------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand-light), #d7efe9); color: var(--brand);
  font-size: 1.5rem; margin-bottom: 1rem;
}
.section-dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.section-dark .card p { color: var(--ink-invert-soft); }
.section-dark .card-icon { background: rgba(22,184,166,.18); color: var(--accent); }

.card ul { color: var(--ink-soft); margin-bottom: 0; }
.card li { margin-bottom: .3rem; }

/* Large use-case card */
.card-lg { padding: 34px; }
.card-lg .card-icon { width: 60px; height: 60px; font-size: 1.7rem; }

/* Compact deliverable pill-card */
.pill {
  display: flex; align-items: center; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  font-weight: 600; color: var(--ink);
}
.pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--brand); }
.pill i { color: var(--accent-dark); font-size: 1.2rem; }

/* ------------------------------ Stats / counters ------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1; }
.stat-label { color: var(--ink-invert-soft); margin: .5rem 0 0; font-weight: 500; }

/* ------------------------------ CTA band -------------------------------- */
.cta-band { background: var(--grad-dark); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-invert-soft); max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ------------------------------ FAQ / AEO ------------------------------- */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 16px; box-shadow: var(--shadow); }
.faq-item h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.faq-item p { margin-bottom: 0; }

/* ------------------------------ Forms ----------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,108,168,.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.form-status { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e6f7f2; color: #0e6b5c; border: 1px solid #b8e6db; }
.form-status.err { background: #fdeaea; color: #a12626; border: 1px solid #f3c4c4; }

.contact-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }
.contact-info li { list-style: none; display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; color: var(--ink-soft); }
.contact-info ul { padding: 0; }
.contact-info i { color: var(--accent-dark); font-size: 1.2rem; margin-top: .2rem; }

/* ------------------------------ Resources search/filter ----------------- */
.resource-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 32px; }
.resource-search { flex: 1 1 280px; max-width: 420px; position: relative; }
.resource-search input { width: 100%; padding: .8rem 1rem .8rem 2.6rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.resource-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft); padding: .5rem 1rem;
  border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; transition: all .2s;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.resource-empty { text-align: center; color: var(--ink-soft); padding: 2rem; display: none; }
.resource-empty.show { display: block; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--accent-dark); background: #e6f7f2; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .8rem; }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--brand-dark); color: var(--ink-invert-soft); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: var(--ink-invert-soft); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand img { height: 40px; border-radius: 6px; margin-bottom: 1rem; }
.footer-brand p { color: var(--ink-invert-soft); max-width: 34ch; }
.social-icons { display: flex; gap: .6rem; margin-top: 1rem; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.social-icons a:hover { background: var(--accent); color: #04322d; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .88rem; }

/* ------------------------------ Reveal animation ------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .pill:hover, .btn:hover { transform: none; }
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
