/* Family Visits — custom CSS (complements Tailwind Play CDN) */

:root {
    --brand: #7C3AED;
    --brand-light: #A78BFA;
    --brand-dark: #5B21B6;
    --sky: #38BDF8;
    --sky-dark: #0EA5E9;
    --canvas: #FAFAFF;
    --canvas-warm: #F3F1FB;
    --canvas-deep: #1E1B3A;
    --sand: #A78BFA;
    --sand-dark: #7C3AED;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body { margin: 0; padding: 0; background-color: var(--canvas); color: #1E1B3A; font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; scroll-behavior: smooth; }

::selection { background: var(--brand); color: var(--canvas); }

h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', Georgia, serif; letter-spacing: -0.01em; margin: 0; }

a { color: inherit; text-decoration: none; }

/* --------- Ambient orbs --------- */
.bg-orbs { position: relative; overflow: hidden; }
.bg-orbs::before, .bg-orbs::after {
    content: ''; position: absolute; border-radius: 9999px;
    filter: blur(80px); opacity: 0.55; pointer-events: none; z-index: 0;
}
.bg-orbs::before { width: 420px; height: 420px; background: #A78BFA; top: -120px; right: -120px; }
.bg-orbs::after { width: 360px; height: 360px; background: #7DD3FC; bottom: -140px; left: -100px; }

/* --------- Grain --------- */
.grain::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.486 0 0 0 0 0.227 0 0 0 0 0.929 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.4; mix-blend-mode: multiply;
}

/* --------- Gradient border card --------- */
.gradient-border { position: relative; background: white; border-radius: 1.25rem; z-index: 0; }
.gradient-border::before {
    content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit;
    background: linear-gradient(135deg, #7C3AED, #38BDF8, #EDE9FE);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    z-index: -1; opacity: 0.5; transition: opacity 0.4s;
}
.gradient-border:hover::before { opacity: 1; }

/* --------- Marquee --------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { display: inline-flex; gap: 4rem; animation: marquee 40s linear infinite; white-space: nowrap; will-change: transform; }
.ticker-line { background: linear-gradient(90deg, transparent, #C4B5FD, transparent); height: 1px; }

/* --------- Reveal on scroll --------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* --------- Pulse ping for chat pill --------- */
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.ping-animate { animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }

/* --------- Utility tokens --------- */
.container-wide { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container-wide { padding: 0 2.5rem; } }

.eyebrow {
    font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
    background: linear-gradient(90deg, var(--brand), var(--sky));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow-dark { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.7); }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border-radius: 9999px; background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    color: white; padding: 0.875rem 1.75rem; font-size: 0.875rem; font-weight: 500;
    transition: all 0.3s; box-shadow: 0 1px 2px rgba(18,38,63,0.04), 0 4px 12px rgba(18,38,63,0.04);
    cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(18,38,63,0.10); background: linear-gradient(90deg, var(--brand-dark), var(--brand)); }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border-radius: 9999px; border: 1px solid rgb(226 232 240); background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px); color: rgb(30 41 59); padding: 0.875rem 1.75rem;
    font-size: 0.875rem; font-weight: 500; transition: all 0.3s; cursor: pointer; white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); background: white; }

.card-soft { background: white; border-radius: 1rem; border: 1px solid rgb(241 245 249); box-shadow: 0 8px 30px rgba(18,38,63,0.06); transition: all 0.3s; }
.card-soft:hover { box-shadow: 0 20px 40px rgba(18,38,63,0.10); }
.hover-lift { transition: transform 0.3s; }
.hover-lift:hover { transform: translateY(-4px); }

.section-label { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--brand); font-weight: 500; }
.section-label::before { content: ''; width: 2rem; height: 1px; background: rgba(124,58,237,0.4); }

/* --------- Mobile menu --------- */
.mobile-menu[hidden] { display: none; }

/* --------- Accordion --------- */
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] .details-icon { transform: rotate(45deg); background: var(--brand); color: white; }
.details-icon { transition: all 0.25s; }

/* --------- Scrollbar polish --------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.25); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.45); }

/* --------- Prose (blog body) --------- */
.prose p { margin: 0 0 1rem 0; line-height: 1.75; color: rgb(51 65 85); font-size: 1.125rem; }
.prose h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.875rem; margin: 2.5rem 0 0.75rem; color: rgb(15 23 42); }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem 0; }
.prose li { margin: 0.25rem 0; line-height: 1.7; color: rgb(51 65 85); }
