/* ═══════════════════════════════════════════════════════════════
   Providence Centered Care — Brand CSS
   All brand colour utilities are defined here so they work
   regardless of the Tailwind CDN version loaded.
════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --purple:       #4a124a;
    --purple-dark:  #2b092b;
    --purple-light: #7b287b;
    --green:        #0d9488;
    --green-dark:   #0f766e;
    --dark:         #1a151a;
    --muted:        #7e7480;
    --light-bg:     #fbfafc;
    --white:        #ffffff;
    --border:       #edeae2;
    --error:        #D32F2F;
    --success:      #0d9488;
}

/* Heading Typography */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
}

/* Premium Facelift Classes */
.glass-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(74, 18, 74, 0.08) !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.glass-card-dark {
    background: rgba(26, 21, 26, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.premium-card-glow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-card-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(74, 18, 74, 0.12), 0 0 15px 1px rgba(13, 148, 136, 0.05);
    border-color: rgba(74, 18, 74, 0.15) !important;
}

/* ── Brand colour utilities (override / supplement Tailwind) ── */

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO — modern split-layout component for inner pages
   Usage: <section class="page-hero [page-hero--teal]">
════════════════════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    background: #1a151a;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a151a 0%, #2b092b 55%, rgba(74,18,74,0.55) 100%);
}
.page-hero--teal .page-hero-bg {
    background: linear-gradient(135deg, #0c4f49 0%, #1a151a 55%, rgba(26,21,26,0.95) 100%);
}
.page-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}
.page-hero-glow {
    position: absolute;
    top: -40%;
    right: -15%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(13,148,136,0.18) 0%, transparent 62%);
    pointer-events: none;
}
.page-hero--teal .page-hero-glow {
    background: radial-gradient(ellipse at center, rgba(74,18,74,0.2) 0%, transparent 60%);
}
.page-hero-img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    mix-blend-mode: luminosity;
    pointer-events: none;
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .page-hero-inner {
        grid-template-columns: 1fr 360px;
        gap: 5rem;
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}
/* Breadcrumb */
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.38);
}
.page-hero-breadcrumb a {
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    transition: color 0.2s;
}
.page-hero-breadcrumb a:hover { color: rgba(255,255,255,0.75); }
.page-hero-breadcrumb-sep {
    width: 12px;
    height: 12px;
    opacity: 0.35;
    flex-shrink: 0;
}
.page-hero-breadcrumb-current { color: rgba(255,255,255,0.6); }
/* Label badge */
.page-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 1rem;
}
.page-hero-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0d9488;
    flex-shrink: 0;
}
/* Title */
.page-hero-title {
    font-size: clamp(2.1rem, 3.5vw + 1rem, 3.5rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.08 !important;
    letter-spacing: -0.022em !important;
    margin-bottom: 1.25rem !important;
}
.page-hero-title .accent { color: #0d9488; }
.page-hero-title .accent-purple { color: #c77dc7; }
/* Description */
.page-hero-desc {
    font-size: clamp(1rem, 1vw + 0.6rem, 1.1rem);
    color: rgba(255,255,255,0.62);
    line-height: 1.85;
    max-width: 540px;
}
/* CTA row */
.page-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2rem;
}
.page-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d9488;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 13px 26px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.page-hero-btn-primary:hover { background: #0f766e; transform: translateY(-1px); }
.page-hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 13px 26px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.22);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.page-hero-btn-ghost:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.4);
}
/* Mobile trust strip (below description on mobile, hidden on desktop) */
.page-hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.75rem;
}
@media (min-width: 1024px) {
    .page-hero-trust-strip { display: none; }
}
.page-hero-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 5px 12px;
}
/* Aside stats card — desktop only */
.page-hero-aside { display: none; }
@media (min-width: 1024px) { .page-hero-aside { display: block; } }
.page-hero-stats-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.page-hero-stat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.page-hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
.page-hero-stat:first-child { padding-top: 0; }
.page-hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.page-hero-stat-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}
.page-hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.48);
    margin-top: 3px;
    line-height: 1.4;
}
/* Bottom accent line */
.page-hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0d9488 40%, rgba(74,18,74,0.6) 70%, transparent);
}

/* Hero gradient — used on all page hero sections */
.hero-gradient {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 55%, #3d1a6e 100%) !important;
    position: relative;
    overflow: hidden;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(13, 148, 136, 0.15) 0%, transparent 65%);
    pointer-events: none;
}
.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Contact Hub Cards */
.contact-hub-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1.5px solid #f0edf5;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px -4px rgba(74, 18, 74, 0.06);
    display: block;
    text-decoration: none;
}
.contact-hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(74, 18, 74, 0.18);
    border-color: rgba(74, 18, 74, 0.25);
}
.contact-hub-card .card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    transition: all 0.3s ease;
}
.contact-hub-card:hover .card-icon-purple {
    background: var(--purple) !important;
}
.contact-hub-card:hover .card-icon-purple svg {
    color: white !important;
}
.contact-hub-card:hover .card-icon-green {
    background: var(--green) !important;
}
.contact-hub-card:hover .card-icon-green svg {
    color: white !important;
}

/* Contact info blocks */
.contact-info-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 1.5px solid #f0edf5;
    box-shadow: 0 2px 8px -3px rgba(74, 18, 74, 0.05);
    transition: box-shadow 0.25s ease;
}
.contact-info-card:hover {
    box-shadow: 0 8px 24px -6px rgba(74, 18, 74, 0.10);
}

/* Form page hero inner content */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Backgrounds */
.bg-purple      { background-color: var(--purple) !important; }
.bg-purple-dark { background-color: var(--purple-dark) !important; }
.bg-green       { background-color: var(--green) !important; }
.bg-green-dark  { background-color: var(--green-dark) !important; }
.bg-dark        { background-color: var(--dark) !important; }

/* Text */
.text-purple       { color: var(--purple) !important; }
.text-purple-dark  { color: var(--purple-dark) !important; }
.text-purple-light { color: var(--purple-light) !important; }
.text-green        { color: var(--green) !important; }
.text-green-dark   { color: var(--green-dark) !important; }
.text-dark         { color: var(--dark) !important; }
.text-muted        { color: var(--muted) !important; }

/* Borders */
.border-purple     { border-color: var(--purple) !important; }
.border-green      { border-color: var(--green) !important; }
.border-dark       { border-color: var(--dark) !important; }

/* Hover variants */
.hover\:bg-purple:hover      { background-color: var(--purple) !important; }
.hover\:bg-purple-dark:hover { background-color: var(--purple-dark) !important; }
.hover\:bg-green:hover       { background-color: var(--green) !important; }
.hover\:bg-green-dark:hover  { background-color: var(--green-dark) !important; }
.hover\:text-purple:hover    { color: var(--purple) !important; }
.hover\:text-green:hover     { color: var(--green) !important; }
.hover\:text-green-dark:hover{ color: var(--green-dark) !important; }
.hover\:border-purple:hover  { border-color: var(--purple) !important; }
.hover\:border-green:hover   { border-color: var(--green) !important; }

/* Opacity tints (used for bg-purple/10 etc.) */
.bg-purple\/5   { background-color: rgba(74, 18, 74, 0.05) !important; }
.bg-purple\/10  { background-color: rgba(74, 18, 74, 0.10) !important; }
.bg-purple\/20  { background-color: rgba(74, 18, 74, 0.20) !important; }
.bg-green\/5    { background-color: rgba(13, 148, 136, 0.05) !important; }
.bg-green\/10   { background-color: rgba(13, 148, 136, 0.10) !important; }
.bg-green\/20   { background-color: rgba(13, 148, 136, 0.20) !important; }
.border-purple\/20 { border-color: rgba(74, 18, 74, 0.20) !important; }
.border-purple\/30 { border-color: rgba(74, 18, 74, 0.30) !important; }
.ring-purple\/30   { --tw-ring-color: rgba(74, 18, 74, 0.30); }

/* ── Focus styles ───────────────────────────────────────────── */
.focus\:ring-purple\/30:focus { --tw-ring-color: rgba(165, 67, 164, 0.30); }
.focus\:border-purple:focus   { border-color: var(--purple) !important; }

/* ── Navigation active state ────────────────────────────────── */
.nav-active { color: var(--purple) !important; font-weight: 700; }

/* ── Button base ────────────────────────────────────────────── */
.btn-purple {
    background-color: var(--purple);
    color: #fff;
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}
.btn-purple:hover { background-color: var(--purple-dark); }

.btn-green {
    background-color: var(--green);
    color: var(--dark);
    font-weight: 800;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}
.btn-green:hover { background-color: var(--green-dark); }

/* ── Animated badge pulse ───────────────────────────────────── */
@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(35, 211, 147, 0.6); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 6px rgba(35, 211, 147, 0); }
}
.pulse-green { animation: pulse-green 2s ease-in-out infinite; }

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}
.emergency-badge { animation: pulse-red 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ── Team card photo ring ───────────────────────────────────── */
.team-photo-ring {
    border: 4px solid var(--purple);
    box-shadow: 0 0 0 2px rgba(165, 67, 164, 0.20);
}

/* ── Section label ──────────────────────────────────────────── */
.section-label {
    display: inline-block;
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── Custom scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
aside::-webkit-scrollbar { width: 4px; }
aside::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ── Line-clamp ─────────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Form focus styling ─────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 4px rgba(74, 18, 74, 0.12) !important;
}
input.error, textarea.error, select.error { border-color: var(--error) !important; }

/* Premium Input styling */
.premium-input {
    background-color: rgba(251, 250, 252, 0.6) !important;
    border: 1.5px solid rgba(74, 18, 74, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1.25rem !important;
    font-size: 0.875rem !important;
    color: var(--dark) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px 0 rgba(74, 18, 74, 0.01) !important;
}
.premium-input:focus {
    background-color: var(--white) !important;
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 4px rgba(74, 18, 74, 0.12), inset 0 2px 4px 0 rgba(0, 0, 0, 0.01) !important;
    transform: translateY(-1px);
}
.premium-input-green:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12), inset 0 2px 4px 0 rgba(0, 0, 0, 0.01) !important;
}

/* Premium Buttons */
.premium-button-purple {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%) !important;
    color: var(--white) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
    border-radius: 0.75rem !important;
    padding: 1rem 2rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 20px -5px rgba(74, 18, 74, 0.25) !important;
    border: none !important;
    cursor: pointer;
}
.premium-button-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(74, 18, 74, 0.35) !important;
    filter: brightness(1.1);
}
.premium-button-purple:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px -2px rgba(74, 18, 74, 0.2) !important;
}

.premium-button-green {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%) !important;
    color: var(--white) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
    border-radius: 0.75rem !important;
    padding: 1rem 2rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.25) !important;
    border: none !important;
    cursor: pointer;
}
.premium-button-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(13, 148, 136, 0.35) !important;
    filter: brightness(1.15);
}
.premium-button-green:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px -2px rgba(13, 148, 136, 0.2) !important;
}

/* Premium Radios / Urgency cards */
.premium-radio-card {
    border: 1.5px solid rgba(74, 18, 74, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5) !important;
}
.premium-radio-card:hover {
    border-color: rgba(74, 18, 74, 0.3) !important;
    background-color: rgba(74, 18, 74, 0.02) !important;
}
.premium-radio-card-active {
    border-color: var(--purple) !important;
    background-color: rgba(74, 18, 74, 0.04) !important;
    box-shadow: 0 4px 12px -2px rgba(74, 18, 74, 0.08) !important;
}
.premium-radio-card-active-emergency {
    border-color: #D32F2F !important;
    background-color: rgba(211, 47, 47, 0.04) !important;
    box-shadow: 0 4px 12px -2px rgba(211, 47, 47, 0.08) !important;
}

/* ── Table hover ────────────────────────────────────────────── */
tbody tr { transition: background-color 100ms ease; }

/* ── Smooth transitions (non-layout props only) ─────────────── */
a, button { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }

/* ── Print ──────────────────────────────────────────────────── */
@media print {
    nav, aside, header, footer, .no-print { display: none !important; }
    main { padding: 0 !important; }
}

/* ── Form section page background ───────────────────────────── */
.form-page-bg {
    background: linear-gradient(180deg, #f5f3fa 0%, #f8f6fb 50%, #ffffff 100%);
    min-height: 60vh;
}

/* ── Enhanced form card ──────────────────────────────────────── */
.premium-form-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1.5px solid #ede9f7;
    box-shadow: 0 24px 60px -16px rgba(74, 18, 74, 0.10), 0 4px 16px -4px rgba(74, 18, 74, 0.04);
}
@media (max-width: 640px) {
    .premium-form-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
}

/* ── Section divider label (Referrer / Client sections) ──────── */
.form-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple);
    border-bottom: 2px solid rgba(74, 18, 74, 0.10);
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-section-label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1rem;
    background: var(--purple);
    border-radius: 2px;
}
