/* ============================================================
   Fix My Appointment — Branded clinic site (site.css)
   Styles for site.html only, the /{slug} tenant page. A NEW file on purpose
   (CLAUDE.md §3/§7): style.css is precached by the service worker, and growing
   a precached file risks stale-cache import mismatches; a file only site.html
   links sidesteps that entirely.

   Theming: the page reads --site-primary / --site-accent, which site.js
   overrides per clinic from clinics/{id}.branding. Defaults match the
   platform palette so an unbranded clinic still looks intentional.
   ============================================================ */
:root {
  --site-primary: #0C6B63;
  --site-accent: #E8862E;
  --site-primary-soft: color-mix(in srgb, var(--site-primary) 8%, white);
}

.site-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px); background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.site-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0;
}
.site-brand .site-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--site-primary);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* The clinic's mark. .site-logo is sized here for the SAME reason the Rx and
   appointment QRs are: an <img> or monogram with no rule in scope grows to its
   natural size, and a 2000px uploaded logo would become the whole topbar. */
.site-logo {
  width: 40px; height: 40px; border-radius: 10px; object-fit: contain;
  background: #fff; border: 1px solid var(--border); flex-shrink: 0;
}
.site-monogram {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--site-primary); color: #fff; font-weight: 800;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.02em;
}
.site-nav { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.site-nav-link {
  color: var(--site-primary); font-weight: 600; font-size: 0.9rem; text-decoration: none;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav-link:hover { border-bottom-color: var(--site-accent); }
.site-topbar .btn-book { background: var(--site-accent); color: #fff; border: none; }

.site-hero {
  /* Two soft radial glows in the brand colours over a vertical fade — depth
     without any image asset to load, break, or need uploading. */
  background:
    radial-gradient(560px 280px at 12% 0%, color-mix(in srgb, var(--site-accent) 10%, transparent), transparent 70%),
    radial-gradient(680px 320px at 88% 8%, color-mix(in srgb, var(--site-primary) 14%, transparent), transparent 72%),
    linear-gradient(180deg, var(--site-primary-soft), #fff);
  padding: clamp(36px, 7vw, 68px) clamp(16px, 4vw, 40px); text-align: center;
}
.site-hero-inner { max-width: 720px; margin: 0 auto; }
.site-hero-logo {
  width: 76px; height: 76px; border-radius: 18px; object-fit: contain;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md);
  margin-bottom: 14px;
}
.site-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-ghost {
  background: #fff; color: var(--site-primary);
  border: 1.5px solid color-mix(in srgb, var(--site-primary) 40%, white);
}

/* At-a-glance strip under the hero: timings, place, doctor count. */
.site-infostrip {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px); background: #fff; border-bottom: 1px solid var(--border);
}
.site-infochip {
  background: var(--site-primary-soft); color: var(--site-primary);
  border-radius: 999px; padding: 7px 14px; font-size: 0.82rem; font-weight: 600;
}
.site-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  color: var(--site-primary); margin: 0 0 8px;
}
.site-hero .site-tagline { font-size: 1.02rem; color: var(--ink-400); max-width: 560px; margin: 0 auto 18px; }
.site-hero .site-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }

.site-wrap { max-width: 1020px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; }
.site-section { margin-top: 34px; }
.site-section > h2 {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-900); margin: 0 0 14px;
  padding-left: 10px; border-left: 4px solid var(--site-accent);
}

.site-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.site-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px;
}
.site-card h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--ink-900); }
.site-card .muted { color: var(--ink-400); }

.site-doctor { display: flex; flex-direction: column; gap: 6px; }
.site-doctor .site-doc-name { font-weight: 700; color: var(--site-primary); font-size: 1.05rem; }
.site-doctor .site-doc-spec { font-size: 0.86rem; color: var(--ink-400); }
.site-doctor .site-doc-slots { font-size: 0.8rem; color: var(--ink-400); }
.site-doctor .btn { align-self: flex-start; margin-top: 6px; background: var(--site-primary); color: #fff; border: none; }

.site-services { display: flex; flex-wrap: wrap; gap: 8px; }
.site-chip {
  background: var(--site-primary-soft); color: var(--site-primary);
  border: 1px solid color-mix(in srgb, var(--site-primary) 25%, white);
  border-radius: 999px; padding: 6px 14px; font-size: 0.84rem; font-weight: 600;
}

.site-footer {
  margin-top: 44px; padding: 22px clamp(16px, 4vw, 40px); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--ink-400); background: #fff;
}
.site-footer a { color: var(--site-primary); font-weight: 600; text-decoration: none; }

/* Gate screens (not found / suspended / not activated) */
.site-gate { min-height: 60vh; display: grid; place-items: center; padding: 40px 16px; text-align: center; }
.site-gate .site-gate-card { max-width: 480px; }
.site-gate .empty-icon { font-size: 2.6rem; }

@media (max-width: 560px) {
  .site-topbar .btn-book { padding: 8px 12px; font-size: 0.82rem; }
  /* Phone: the name yields before the nav does — "My Appointments" staying
     reachable matters more than the full clinic name, which the hero repeats
     two lines below anyway. */
  .site-brand .site-name { font-size: 0.98rem; }
  .site-nav { gap: 8px; }
  .site-nav-link { font-size: 0.8rem; }
}
