/*
Theme Name: Elder Referrals
Theme URI: https://www.elderreferrals.com
Author: Elder Referrals
Description: Custom theme for Elder Referrals senior living advisory. Includes the homepage, Contact Us page, and the Best of Senior Living directory with filters, plus a Communities manager and an Enquiries inbox in the dashboard.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: elder-referrals
*/

.glass-nav { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); }
.hero-gradient {
    background: linear-gradient(135deg, rgba(15, 98, 102, 0.88) 0%, rgba(7, 46, 48, 0.92) 100%), url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
}
.field { width: 100%; background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.95rem; color: #1E293B; }
.field:focus { outline: none; border-color: #0F6266; box-shadow: 0 0 0 3px rgba(15, 98, 102, .2); }
.field[aria-invalid="true"] { border-color: #DC2626; }
.err { color: #DC2626; font-size: 0.8rem; margin-top: 0.3rem; }
.err:empty { display: none; }
.er-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
details.faq summary { list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary i { transition: transform .2s; }
details.faq[open] summary i { transform: rotate(45deg); }
input[type="range"] { height: 6px; }
@media (min-width: 1024px) { #filterPanel { display: block !important; } }

/* Content from the WordPress editor (generic pages) */
.er-content h2 { font-family: "Playfair Display", serif; font-size: 1.75rem; font-weight: 700; color: #0F172A; margin: 2rem 0 0.75rem; }
.er-content h3 { font-family: "Playfair Display", serif; font-size: 1.35rem; font-weight: 700; color: #0F172A; margin: 1.5rem 0 0.5rem; }
.er-content p { color: #475569; line-height: 1.75; margin-bottom: 1rem; }
.er-content ul { list-style: disc; padding-left: 1.5rem; color: #475569; margin-bottom: 1rem; }
.er-content ol { list-style: decimal; padding-left: 1.5rem; color: #475569; margin-bottom: 1rem; }
.er-content a { color: #0F6266; text-decoration: underline; }
.er-content img { border-radius: 1rem; max-width: 100%; height: auto; }

/* Legal pages */
.er-legal h2 { scroll-margin-top: 7rem; padding-top: 0.5rem; }
.er-legal h2:first-child { margin-top: 0; }
.er-legal li { margin-bottom: 0.4rem; line-height: 1.7; }
.er-legal .wp-block-table { overflow-x: auto; margin: 1rem 0 1.5rem; }
.er-legal table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.er-legal th, .er-legal td { border: 1px solid #E2E8F0; padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; color: #475569; }
.er-legal th { background: #F0F9F9; color: #0F172A; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Blog articles */
.er-article { font-size: 1.0625rem; }
.er-article > p:first-child { font-size: 1.2rem; color: #334155; }
.er-article h2 { scroll-margin-top: 7rem; margin-top: 2.5rem; }
.er-article li { margin-bottom: 0.5rem; line-height: 1.75; }
.er-article strong { color: #0F172A; }
.er-article blockquote { border-left: 4px solid #D4A359; background: #FBF9F5; padding: 1rem 1.25rem; border-radius: 0 1rem 1rem 0; font-family: "Playfair Display", serif; font-size: 1.2rem; color: #0F172A; margin: 1.5rem 0; }
.er-article figure { margin: 1.5rem 0; }
.er-article figcaption { font-size: .8rem; color: #64748B; text-align: center; margin-top: .5rem; }
.tag-cloud-link, a[rel="tag"] { display: inline-block; background: #F0F9F9; color: #0C4F52; font-size: .8rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; text-decoration: none; }
a[rel="tag"]:hover { background: #CCEDED; }

/* Printable checklist: print only the checklist */
@media print {
	body * { visibility: hidden; }
	#checklist, #checklist * { visibility: visible; }
	#checklist { position: absolute; left: 0; top: 0; width: 100%; }
	.no-print, #cookieNotice { display: none !important; }
}

/* Editor previews of sections */
.er-section-preview { position: relative; outline: 1px dashed transparent; }
.er-section-preview:hover, .er-section-preview.is-selected { outline-color: #0F6266; }
.er-section-label { position: absolute; top: 8px; left: 8px; z-index: 5; background: #0F6266; color: #fff; font: 600 11px/1 system-ui, sans-serif; padding: 6px 9px; border-radius: 6px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.er-section-preview:hover .er-section-label, .er-section-preview.is-selected .er-section-label { opacity: 1; }

/* Plain WordPress blocks added between sections get the site's text styles and width */
.er-sections > p, .er-sections > h2, .er-sections > h3, .er-sections > ul, .er-sections > ol, .er-sections > figure, .er-sections > .wp-block-image, .er-sections > .wp-block-buttons, .er-sections > .wp-block-quote, .er-sections > .wp-block-columns { max-width: 64rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.er-sections > h2 { font-family: "Playfair Display", serif; font-size: 2rem; font-weight: 700; color: #0F172A; margin-top: 3rem; margin-bottom: 1rem; }
.er-sections > h3 { font-family: "Playfair Display", serif; font-size: 1.4rem; font-weight: 700; color: #0F172A; margin-top: 2rem; margin-bottom: .5rem; }
.er-sections > p { color: #475569; line-height: 1.75; margin-bottom: 1rem; }
.er-sections > ul { list-style: disc; padding-left: 2.5rem; color: #475569; margin-bottom: 1rem; }
/* In the editor, show sections at full width like on the live site */
.editor-styles-wrapper .wp-block.er-section-preview, .editor-styles-wrapper .is-root-container > .er-section-preview { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.editor-styles-wrapper .is-root-container.is-layout-constrained > .er-section-preview { max-width: none !important; }
