/* =============================================
   THEME TRIAL — Calendly-style reskin (2026-09-22)
   Source: otemed DESIGN.md (Calendly.com style reference)

   This file loads LAST (after tailwind.output.css and style.css) so its
   rules win the cascade without editing either of those files.

   TO REVERT: remove the <link> to this file (2 places) in
   views/layouts/header.php — search "DESIGN TEST (2026-09-22)" — and the
   site returns to the previous look exactly as it was. Untouched originals
   are also snapshotted in design-backup-2026-09-22/.
   ============================================= */

:root {
    /* === Calendly design tokens === */
    --color-ink-navy: #0b3558;
    --color-signal-blue: #006bff;
    --color-slate-gray: #476788;
    --color-mist-gray: #a6bbd1;
    --color-cloud: #f8f9fb;
    --color-paper: #ffffff;
    --color-pebble: #f0f3f8;
    --color-hairline: #d4e0ed;
    --color-deep-cobalt: #004eba;
    --color-coral-magenta: #e55cff;
    --color-sky-cyan: #0099ff;

    --font-calendly: 'Manrope', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --shadow-calendly-sm: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 4px 10px 0px, rgba(71, 103, 136, 0.05) 0px 10px 20px 0px;
    --shadow-calendly-md: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, rgba(71, 103, 136, 0.08) 0px 30px 50px 0px;

    /* === Remap existing hand-rolled tokens (style.css :root) so every
       var(--brand-*) / var(--mx-*) / var(--elite-*) usage across templates
       and home.css picks up the new palette automatically === */
    --brand-950: #0b3558;
    --brand-900: #0b3558;
    --brand-700: #004eba;
    --brand-100: #f0f3f8;

    --accent-gold: #006bff;
    --accent-gold-soft: rgba(0, 107, 255, 0.15);

    --bg-main: #f8f9fb;
    --bg-card: #ffffff;
    --text-main: #0b3558;
    --text-muted: #476788;

    --glass: rgba(255, 255, 255, 0.7);
    --glass-lux: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(11, 53, 88, 0.1);
    --glass-border-gold: rgba(0, 107, 255, 0.3);

    --shadow-soft: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 4px 10px 0px, rgba(71, 103, 136, 0.05) 0px 10px 20px 0px;
    --shadow-lift: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, rgba(71, 103, 136, 0.08) 0px 30px 50px 0px;
    --shadow-elite: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, rgba(71, 103, 136, 0.06) 0px 15px 30px 0px;

    /* Flat surfaces only — Calendly system has no gradients */
    --gradient-turq: #0b3558;
    --gradient-gold: #006bff;
    --gradient-grainy: #f8f9fb;

    --mx-primary: #006bff;
    --mx-secondary: #0099ff;
    --mx-cta: #006bff;
    --mx-gold-dark: #004eba;
    --mx-gold-gradient: #006bff;
    --mx-soft: #f0f3f8;
    --mx-white: #ffffff;
    --mx-ink: #0b3558;
    --mx-slate-600: #476788;
    --mx-shadow: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, rgba(71, 103, 136, 0.08) 0px 30px 50px 0px;
    --mx-shadow-soft: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 4px 10px 0px, rgba(71, 103, 136, 0.05) 0px 10px 20px 0px;

    --elite-cyan: #006bff;
    --elite-emerald: #004eba;
    --gold-luxe: #006bff;
    --elite-glow: rgba(0, 107, 255, 0.15);
    --elite-shadow: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, rgba(71, 103, 136, 0.06) 0px 15px 30px 0px;
    --elite-border: rgba(71, 103, 136, 0.08);

    --mx-gold: #006bff;
    --mx-gold-light: #0099ff;
}

/* === Base surfaces & typography === */
body {
    background-color: var(--color-cloud);
    color: var(--color-ink-navy);
    font-family: var(--font-calendly);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-ink-navy);
    font-family: var(--font-calendly);
    font-weight: 700;
}

a {
    color: var(--color-signal-blue);
}

/* Legibility patch (style.css) already forces light text on dark-brand
   backgrounds; keep it working by pointing at the same navy surfaces. */
.bg-emerald-950, .dark-footer, .bg-slate-900, .bg-brand-950,
.bg-emerald-900, .bg-emerald-800, [class*="bg-brand-"] {
    background-color: var(--color-ink-navy) !important;
}

/* === Tailwind utility overrides -> Calendly palette
   (generated from a full scan of views/ + public_html/*.php for every
   emerald / slate / amber / cyan / teal / gold-* class actually in use) === */
.bg-amber-100 { background-color: #f0f3f8 !important; }
.bg-amber-50 { background-color: #f0f3f8 !important; }
.bg-cyan-500 { background-color: #006bff !important; }
.bg-emerald-100 { background-color: #f0f3f8 !important; }
.bg-emerald-400 { background-color: #a6bbd1 !important; }
.bg-emerald-50 { background-color: #f8f9fb !important; }
.bg-emerald-500 { background-color: #006bff !important; }
.bg-emerald-600 { background-color: #006bff !important; }
.bg-emerald-700 { background-color: #004eba !important; }
.bg-emerald-800 { background-color: #0b3558 !important; }
.bg-emerald-900 { background-color: #0b3558 !important; }
.bg-emerald-950 { background-color: #0b3558 !important; }
.bg-gold-500 { background-color: #006bff !important; }
.bg-slate-50 { background-color: #f8f9fb !important; }
.border-amber-100 { border-color: #f0f3f8 !important; }
.border-amber-200 { border-color: #d4e0ed !important; }
.border-amber-400 { border-color: #d4e0ed !important; }
.border-emerald-100 { border-color: #f0f3f8 !important; }
.border-emerald-200 { border-color: #d4e0ed !important; }
.border-emerald-400 { border-color: #a6bbd1 !important; }
.border-emerald-50 { border-color: #f8f9fb !important; }
.border-emerald-800 { border-color: #0b3558 !important; }
.border-emerald-900 { border-color: #0b3558 !important; }
.border-emerald-950 { border-color: #0b3558 !important; }
.border-slate-100 { border-color: #f0f3f8 !important; }
.border-slate-200 { border-color: #d4e0ed !important; }
.border-slate-50 { border-color: #f8f9fb !important; }
.border-slate-700 { border-color: #0b3558 !important; }
.from-emerald-50 { --tw-gradient-from: #f8f9fb !important; }
.from-emerald-800 { --tw-gradient-from: #0b3558 !important; }
.from-emerald-950 { --tw-gradient-from: #0b3558 !important; }
.from-slate-50 { --tw-gradient-from: #f8f9fb !important; }
.shadow-emerald-950 { --tw-shadow-color: rgba(71, 103, 136, 0.15) !important; }
.text-amber-700 { color: #004eba !important; }
.text-amber-800 { color: #004eba !important; }
.text-cyan-600 { color: #006bff !important; }
.text-emerald-200 { color: #d4e0ed !important; }
.text-emerald-400 { color: #a6bbd1 !important; }
.text-emerald-500 { color: #006bff !important; }
.text-emerald-600 { color: #006bff !important; }
.text-emerald-700 { color: #004eba !important; }
.text-emerald-800 { color: #0b3558 !important; }
.text-emerald-900 { color: #0b3558 !important; }
.text-emerald-950 { color: #0b3558 !important; }
.text-slate-300 { color: #d4e0ed !important; }
.text-slate-400 { color: #a6bbd1 !important; }
.text-slate-500 { color: #476788 !important; }
.text-slate-600 { color: #476788 !important; }
.text-slate-700 { color: #0b3558 !important; }
.text-slate-800 { color: #0b3558 !important; }
.text-slate-900 { color: #0b3558 !important; }
.to-teal-50 { --tw-gradient-to: #f8f9fb !important; }
.via-emerald-800 { --tw-gradient-stops: #0b3558, #0b3558 !important; }
