/* =========================================================
   TechDoctor — Brand Refresh (2026)
   ---------------------------------------------------------
   Loaded LAST (after tokens.css, style.css, design-system.css),
   so it wins on the cascade. It only re-defines :root design
   tokens and re-pins a handful of named colour variants — it
   touches NO structural CSS. Remove this one <link> and the
   site reverts exactly to its previous look. Nothing here
   changes layout geometry, so there is no reflow risk.

   The moves:
     • Primary  #0066FF (electric)  → #1B4DB3 (deep trust-blue)
     • Secondary #00C853 (material) → #0E9F6E (vital emerald)
     • Accent   #7C4DFF (purple)    → #F97362 (warm coral, human)
       — purple is preserved where the design explicitly asks
         for it (.card-gradient.purple, .feature-icon.purple).
     • Softer, warmer, single-family shadows.
     • Sharper display headings (tracking only — no reflow).
   ========================================================= */

:root {
    /* ── Primary · trust ─────────────────────────────────
       Electric #0066FF is every health-SaaS default. A deeper
       blue reads calmer and more clinical while staying the
       same brand hue — still bright enough on the dark hero. */
    --primary:       #1B4DB3;
    --primary-dark:  #153E92;
    --primary-light: #EAF1FC;

    /* ── Secondary · vitality ────────────────────────────
       Emerald instead of a bright "confirm-button" green —
       pairs better with the deeper blue and still passes AA
       on the dark hero. */
    --secondary:       #0E9F6E;
    --secondary-dark:  #0B8457;
    --secondary-light: #E4F6EF;

    /* ── Accent · human warmth ───────────────────────────
       One warm coral, used sparingly, to stop the palette
       feeling cold and clinical. Echoes the orange already in
       the TechDoctor wordmark. */
    --accent:       #F97362;
    --accent-dark:  #E85B49;
    --accent-light: #FFEDE9;

    /* ── Surfaces & ink ──────────────────────────────────
       Surface warmed a touch; borders made neutral (they were
       tinted with the old electric blue). */
    --bg:         #F4F6FA;
    --text:       #14202B;
    --text-light: #51617A;
    --text-muted: #8A97A8;
    --border:     rgba(20, 32, 43, 0.09);

    /* ── Shadows · one warm family ───────────────────────
       Replaces the blue-tinted glow with a soft neutral
       elevation that reads cleaner on cheap screens. */
    --shadow-sm: 0 1px 2px rgba(16, 34, 64, 0.06), 0 1px 3px rgba(16, 34, 64, 0.05);
    --shadow-md: 0 4px 14px rgba(16, 34, 64, 0.08);
    --shadow-lg: 0 12px 32px rgba(16, 34, 64, 0.10);
    --shadow-xl: 0 24px 60px rgba(16, 34, 64, 0.14);

    /* Glass/card shadow + glass edge follow the new family so
       frosted cards lose the blue halo. */
    --glass-shadow: 0 8px 32px rgba(16, 34, 64, 0.08);
    --glass-border: rgba(20, 32, 43, 0.06);

    /* Focus ring picks up the new primary. */
    --focus-ring-color: rgba(27, 77, 179, 0.45);
}

/* ── Preserve purple where it is named explicitly ─────────
   --accent now resolves to coral, but these two components are
   deliberately "purple", so pin them to an explicit purple. */
.card-gradient.purple { background: linear-gradient(135deg, #7C4DFF 0%, #B388FF 100%); }
.feature-icon.purple  { color: #7C4DFF; }

/* ── Sharper display headings ─────────────────────────────
   Tracking only (no weight/size change), so headings tighten
   into a more confident masthead with zero reflow risk. */
h1, h2,
.hero-title, .section-title, .dash-title, .display {
    letter-spacing: -0.02em;
}

/* =========================================================
   HERO (.hx) — dark → LIGHT
   ---------------------------------------------------------
   The homepage hero shipped as a dark navy band (#060F1E,
   white text, dark glass device cards). The brief is a light,
   airy hero like the reference site, so every dark-surface
   colour in the carousel hero is re-pinned to a light-surface
   equivalent here. Geometry, animation and markup are
   untouched — only colours flip — so it stays fully reversible.
   ========================================================= */

/* Section: airy white → soft blue wash, ink text. */
.hx {
    background: linear-gradient(180deg, #FFFFFF 0%, #EDF2FB 100%);
    color: var(--text);
}
/* Ambient glows: soft pastel brand washes instead of neon on black. */
.hx::before {
    background:
      radial-gradient(42vw 42vw at 10% 6%,  rgba(27, 77, 179, 0.10), transparent 64%),
      radial-gradient(34vw 34vw at 92% 72%, rgba(14, 159, 110, 0.08), transparent 66%),
      radial-gradient(30vw 30vw at 62% -8%, rgba(249, 115, 98, 0.07), transparent 68%);
}
/* Grid texture: faint dark lines on light, not white lines on dark. */
.hx-texture {
    opacity: .5;
    background-image:
      linear-gradient(rgba(20, 32, 43, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(20, 32, 43, 0.045) 1px, transparent 1px);
}
/* Eyebrow pill: tinted brand chip rather than frosted-white-on-dark. */
.hx-eyebrow {
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(27, 77, 179, 0.16);
}
.hx-eyebrow .pip { background: var(--secondary); box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.20); }
/* Headline / body honour the banner's "Text colour" (--hx-fg, set per slide
   in Banner.php) and fall back to the light-theme ink when it is unset. */
.hx-title { color: var(--hx-fg, var(--text)); }
.hx-title .ac {
    color: var(--secondary-dark);
    background-image: linear-gradient(90deg, rgba(14, 159, 110, 0.90), rgba(14, 159, 110, 0.28));
}
/* Body + trust row → muted ink greys; trust ticks → emerald. */
.hx-body  { color: var(--hx-fg, var(--text-light)); }
.hx-trust { color: var(--hx-fg, var(--text-light)); }
.hx-trust i { color: var(--secondary); }

/* ---- layout-aware copy ----------------------------------
   Image slides (cover/full) sit on artwork, so their copy
   defaults to WHITE and the eyebrow becomes a frosted chip —
   this is what makes "See a doctor" readable on a photo again.
   Panel/colour slides keep the light-theme ink above. Either
   way the banner's own "Text colour" (--hx-fg) wins when set. */
.hx-slide.is-cover .hx-title, .hx-slide.is-full .hx-title { color: var(--hx-fg, #fff); }
.hx-slide.is-cover .hx-body,  .hx-slide.is-full .hx-body,
.hx-slide.is-cover .hx-trust, .hx-slide.is-full .hx-trust { color: var(--hx-fg, rgba(255,255,255,0.90)); }
.hx-slide.is-cover .hx-eyebrow, .hx-slide.is-full .hx-eyebrow {
    color: var(--hx-fg, #fff);
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.32);
}
.hx-slide.is-cover .hx-trust i, .hx-slide.is-full .hx-trust i { color: #fff; }
/* A colour/panel slide shows its own "Background colour" (--hx-bg); unset,
   it falls through to the light hero gradient on the section behind it. */
.hx-slide.is-panel { background: var(--hx-bg); }
/* Media frame → light edge + soft shadow (was a near-black glow). */
.hx-media, .hx-video {
    border: 1px solid var(--border);
    box-shadow: 0 30px 70px -40px rgba(16, 34, 64, 0.35);
}
/* Floating device cards → clean white cards, ink text, soft elevation. */
.hx-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: 0 20px 44px -22px rgba(16, 34, 64, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.hx-card .lbl { color: var(--text-muted); }
.hx-card .val { color: var(--text); }
/* Sparkline + device→record link → emerald. */
.hx-spark path { stroke: var(--secondary); }
.hx-link path  { stroke: rgba(14, 159, 110, 0.45); }

/* Hero search bar → white surface, ink text (was dark glass). */
.hx-search {
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.hx-search:focus-within {
    border-color: rgba(14, 159, 110, 0.55);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(14, 159, 110, 0.15);
}
.hx-search .f + .f { border-left: 1px solid var(--border); }
.hx-search label { color: var(--text-muted); }
.hx-search input { color: var(--text); }
.hx-search input::placeholder { color: var(--text-muted); }
.hx-search button { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

/* Hero quick links ("Common: …") → light chips. */
.hx-quick span { color: var(--text-light); }
.hx-quick a {
    color: var(--primary);
    border: 1px solid var(--border);
    background: #FFFFFF;
}
.hx-quick a:hover {
    border-color: var(--secondary);
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

/* Secondary hero action (ghost-light) → readable on the light hero. */
.hx .btn-ghost-light,
.hx-actions .btn-ghost-light,
.hp-partner .btn-ghost-light {
    color: var(--text);
    border: 1px solid var(--border);
    background: #FFFFFF;
}
.hx .btn-ghost-light:hover,
.hx-actions .btn-ghost-light:hover,
.hp-partner .btn-ghost-light:hover {
    background: var(--primary-light);
    border-color: rgba(27, 77, 179, 0.24);
    color: var(--primary-dark);
}
/* NB: the "Run a clinic" band (.hp-partner) is defined in index.php's own
   inline <style>, which loads AFTER this file, so its surface is lightened
   there rather than here. */

/* =========================================================
   INNER-PAGE HERO (.ph) — dark → LIGHT
   ---------------------------------------------------------
   Every inner page (doctors, pricing, about, services …) shares
   this band, which shipped dark (#060F1E, white text). Flip it
   to the same light hero as the homepage so the whole site reads
   as one light theme. Colours only; geometry untouched.
   ========================================================= */
.ph { background: linear-gradient(180deg, #FFFFFF 0%, #EDF2FB 100%); color: var(--text); }
.ph::before {
    background:
        radial-gradient(620px 380px at 16% 18%, rgba(27, 77, 179, 0.10), transparent 68%),
        radial-gradient(520px 340px at 88% 76%, rgba(14, 159, 110, 0.07), transparent 68%);
}
.ph::after { opacity: .3; }
.ph-crumb { color: var(--text-muted); }
.ph-crumb a { color: var(--text-light); }
.ph-crumb a:hover { color: var(--primary); }
.ph-crumb .here { color: var(--text); }
.ph-eyebrow {
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(27, 77, 179, 0.16);
}
.ph-eyebrow i { color: var(--primary); }
.ph h1 { color: var(--text); }
.ph h1 .ac {
    background: linear-gradient(100deg, #1B4DB3 0%, #0E9F6E 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--primary);
}
.ph-lede { color: var(--text-light); }
.ph-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ph-card-ic { color: var(--primary); background: var(--primary-light); }
.ph-card b  { color: var(--text); }
.ph-card em { color: var(--text-muted); }
/* Inner-hero search tools → white bar, ink fields (base uses !important). */
.ph-tools .pt-row {
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.ph-tools .form-control {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}
.ph-tools .form-control::placeholder { color: var(--text-muted); }
.ph-tools .form-control:focus {
    outline: 2px solid rgba(14, 159, 110, 0.5);
    background: #FFFFFF !important;
}
/* Secondary CTA on the inner hero, if any, stays readable on light. */
.ph .btn-ghost-light { color: var(--text); border: 1px solid var(--border); background: #FFFFFF; }
.ph .btn-ghost-light:hover { background: var(--primary-light); border-color: rgba(27, 77, 179, 0.24); color: var(--primary-dark); }

/* =========================================================
   TOPBAR "Registered & certified" — bigger + enhanced
   ---------------------------------------------------------
   The credential badges sat small (34px) as bare logos floating
   on the dark band. Each now sits on a clean white chip so the
   mix of logos reads as one tidy, official-looking row, sized up
   and given a soft lift on hover. Data is untouched — this only
   restyles whatever real awards the band already renders.
   ========================================================= */
.tband-creds {
    padding: 15px 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}
.tband-creds-head {
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.72);
}
.tband-creds ul { gap: 13px 15px; }
.tband-creds li { align-items: center; }
.tband-creds a  { align-items: center; }
.tband-creds a:hover { text-decoration: none; }
/* each badge → a white chip, sized up */
.tband-creds img {
    max-height: 48px;
    width: auto;
    background: #FFFFFF;
    padding: 9px 13px;
    border-radius: 12px;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
    transition: transform .18s var(--ease-out, ease), box-shadow .18s ease;
}
.tband-creds a:hover img,
.tband-creds li:hover img {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
}
/* Keep the chips sensible on small screens (band stacks there). */
@media (max-width: 640px) {
    .tband-creds { padding: 10px 12px; }
    .tband-creds img { max-height: 38px; padding: 7px 10px; border-radius: 10px; }
    .tband-creds ul { gap: 9px 10px; }
}

/* =========================================================
   FOOTER — enhanced (richer, reference-inspired)
   ---------------------------------------------------------
   Kept dark (footers are, in the reference too), but given a
   designed top edge, soft brand atmosphere, accented headings,
   lively link/social hovers and an honest trust row. Visual
   only; the markup adds just the trust row.
   ========================================================= */
.footer {
    position: relative;
    background:
        radial-gradient(900px 320px at 14% 0%, rgba(27, 77, 179, 0.20), transparent 70%),
        radial-gradient(760px 320px at 86% 4%, rgba(14, 159, 110, 0.13), transparent 72%),
        var(--bg-dark);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)) 1;
}

/* Brand block — display face, emerald heart, tagline spacing. */
.footer-brand h2 {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em;
}
.footer-brand h2 i { color: var(--secondary); }

/* Column headings — accent underline + display face. */
.footer h3 {
    position: relative; padding-bottom: 12px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 0.95rem; letter-spacing: 0.02em;
}
.footer h3::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 26px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Links — accent hover with a small shift, icon lights up emerald. */
.footer-links a {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255, 255, 255, 0.56);
    transition: color .16s ease, transform .16s ease;
}
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-links a i { color: rgba(255, 255, 255, 0.34); font-size: .82rem; }
.footer-links a:hover i { color: var(--secondary); }

/* Social icons — bordered, bigger hit area, brand hover lift. */
.social-links a {
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}
.social-links a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* Honest trust row. */
.footer-trust {
    display: flex; flex-wrap: wrap; gap: 13px 28px; align-items: center;
    margin: 4px 0 30px; padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-trust span {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.88rem; color: rgba(255, 255, 255, 0.74);
}
.footer-trust i { color: var(--secondary); font-size: 0.9rem; }

/* Bottom — emergency line gets a warm, unmistakable tint. */
.footer-bottom { gap: 10px 20px; flex-wrap: wrap; }
.footer-emergency {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255, 176, 120, 0.92) !important;
}
.footer-emergency i { color: var(--accent); }
/* text-only credential (no logo) → a matching light chip so it sits in
   the same row rather than as loose white text */
.tband-creds li:not(.is-demo) > strong,
.tband-creds a > strong {
    background: #FFFFFF; color: var(--primary-dark);
    padding: 8px 13px; border-radius: 12px; font-size: 0.82rem;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
}
.tband-creds li > span { align-self: center; }

/* =========================================================
   Colour pickers (Admin → Banners "Background/Text colour")
   ---------------------------------------------------------
   The native colour swatch collapsed to a thin line because
   .form-control's text padding applied to it. Restore a real,
   clickable swatch so the pickers are usable.
   ========================================================= */
input[type="color"].form-control,
input[type="color"] {
    padding: 4px;
    min-height: 44px;
    cursor: pointer;
    background: #fff;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 1px solid var(--border); border-radius: 7px; }
input[type="color"]::-moz-color-swatch  { border: 1px solid var(--border); border-radius: 7px; }
