/* ============================================================
   AI Paralegal — Main Stylesheet
   Colors: Maroon #5C1628 | Dark Maroon #3B0D18 | Gold #C9A535 | Black #111
   ============================================================ */

:root {
  --maroon:       #5C1628;
  --maroon-dark:  #3B0D18;
  --maroon-light: #7A2038;
  --gold:         #C9A535;
  --gold-light:   #DDB84A;
  --gold-pale:    #F5ECC7;
  --black:        #111111;
  --gray-dark:    #2D2D2D;
  --gray:         #6B7280;
  --gray-light:   #F3F4F6;
  --white:        #FFFFFF;
  --cream:        #FAF8F5;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--black); background: var(--white); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Top Bar ── */
.topbar { background: var(--maroon-dark); color: var(--gold-pale); font-size: 0.875rem; padding: 8px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.topbar-phone { display: flex; align-items: center; gap: 6px; color: var(--gold-pale); font-weight: 500; transition: color .2s; }
.topbar-phone:hover { color: var(--gold); }
.topbar-icon { width: 16px; height: 16px; flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-social { color: var(--gold-pale); opacity: .8; transition: opacity .2s; }
.topbar-social:hover { opacity: 1; }

/* ── Navbar ── */
.navbar { background: #FFFFFF; border-bottom: 2px solid var(--maroon); position: sticky; top: 0; z-index: 100; transition: box-shadow .3s; }
.navbar.scrolled { box-shadow: 0 4px 20px rgba(92,22,40,.15); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; max-width: 1160px; margin: 0 auto; }
.navbar-brand { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 1.1rem; font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.3px; line-height: 1; text-decoration: none; }
.navbar-logo { display: block; width: 52px; height: 52px; min-width: 52px; max-width: 52px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); flex-shrink: 0; }
.brand-ai { color: var(--gold); }
.brand-paralegal { color: var(--maroon); }
.brand-paralegal-light { color: rgba(255,255,255,.85); }
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--maroon); font-size: 0.88rem; font-weight: 600; padding: 6px 11px; border-radius: var(--radius); transition: color .2s, background .2s; }
.nav-link:hover, .nav-link.active { color: var(--maroon-dark); background: var(--gold-pale); }

/* ── Hamburger ── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--maroon); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ── */
.mobile-menu { display: none; flex-direction: column; background: var(--maroon-dark); padding: 0; overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.mobile-menu.open { max-height: 500px; padding: 8px 0 16px; }
.mobile-link { color: rgba(255,255,255,.85); padding: 12px 24px; font-size: 1rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); transition: color .2s, background .2s; }
.mobile-link:hover { color: var(--gold); background: rgba(255,255,255,.05); }
.mobile-cta { color: var(--gold) !important; font-weight: 600; border-bottom: none; }

/* ── Buttons ── */
.btn-gold { display: inline-block; background: var(--gold); color: var(--maroon-dark); font-size: 0.875rem; font-weight: 700; padding: 9px 20px; border-radius: var(--radius); letter-spacing: .3px; transition: background .2s, transform .15s; border: none; cursor: pointer; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-maroon { display: inline-block; background: var(--maroon); color: var(--white); font-size: 0.95rem; font-weight: 600; padding: 12px 28px; border-radius: var(--radius); transition: background .2s, transform .15s; border: none; cursor: pointer; }
.btn-maroon:hover { background: var(--maroon-light); transform: translateY(-1px); }
.btn-outline { display: inline-block; background: transparent; color: var(--maroon); border: 2px solid var(--maroon); font-size: 0.95rem; font-weight: 600; padding: 10px 26px; border-radius: var(--radius); transition: all .2s; cursor: pointer; }
.btn-outline:hover { background: var(--maroon); color: var(--white); }
.btn-outline-white { display: inline-block; background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); font-size: 0.95rem; font-weight: 600; padding: 10px 26px; border-radius: var(--radius); transition: all .2s; cursor: pointer; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: white; }

/* ── Flash Messages ── */
.messages-container { position: fixed; top: 70px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-lg); }
.flash-success { background: #D1FAE5; color: #065F46; border-left: 4px solid #10B981; }
.flash-error { background: #FEE2E2; color: #991B1B; border-left: 4px solid #EF4444; }
.flash-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid #F59E0B; }
.flash-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.2rem; line-height: 1; opacity: .6; }
.flash-close:hover { opacity: 1; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 60%, #7A2038 100%); color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A535' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 24px; }
.hero h1 span { color: var(--gold); }
.hero-body { font-size: 1.05rem; opacity: .9; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: 10px 18px; border-radius: 50px; font-size: 0.85rem; }
.hero-badge-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.hero-image { position: relative; display: flex; justify-content: center; }
.hero-photo-wrap { position: relative; display: inline-block; }
.hero-photo { width: 340px; height: 400px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-credentials { position: absolute; bottom: -20px; left: -20px; background: var(--white); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-lg); }
.cred-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); }
.cred-value { font-size: 0.9rem; font-weight: 700; color: var(--maroon); margin-top: 2px; }

/* ── Section shared ── */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--maroon-dark); color: white; }
.section-cream { background: var(--cream); }
.section-gold { background: var(--gold-pale); }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-label-light { color: rgba(201,165,53,.8); }
.section-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.25; margin-bottom: 16px; }
.section-body { color: var(--gray); font-size: 1rem; max-width: 600px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-body { margin: 0 auto; }
.divider-gold { width: 48px; height: 3px; background: var(--gold); margin: 16px 0; }
.divider-gold-center { margin: 16px auto; }

/* ── Cards ── */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 28px; }
.card-icon { width: 52px; height: 52px; background: var(--gold-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 26px; height: 26px; color: var(--maroon); }
.card-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--maroon); margin-bottom: 10px; }
.card-text { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }
.card-link { display: inline-flex; align-items: center; gap: 4px; color: var(--maroon); font-size: 0.875rem; font-weight: 600; margin-top: 14px; }
.card-link:hover { color: var(--gold); }

/* ── Grid layouts ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }

/* ── Services list ── */
.service-block { padding: 36px; background: var(--white); border-radius: var(--radius-lg); border-left: 4px solid var(--gold); box-shadow: var(--shadow); margin-bottom: 24px; }
.service-block h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--maroon); margin-bottom: 10px; }
.service-block p { color: var(--gray); font-size: 0.95rem; }
.service-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.service-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--gray-dark); }
.service-list li::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }

/* ── Success story cards ── */
.story-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-card-header { background: var(--maroon); padding: 20px 24px; }
.story-badge { display: inline-block; background: var(--gold); color: var(--maroon-dark); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; }
.story-card-header h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); }
.story-card-body { padding: 24px; }
.story-outcome { color: var(--maroon); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.story-excerpt { color: var(--gray); font-size: 0.875rem; line-height: 1.6; }
.story-footer { padding: 0 24px 20px; display: flex; justify-content: space-between; align-items: center; }
.story-date { font-size: 0.8rem; color: var(--gray); }

/* ── Newsletter / Blog ── */
.article-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-img { display: block; width: 100%; height: auto; object-fit: contain; }
.article-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%); display: flex; align-items: center; justify-content: center; }
.article-img-placeholder svg { width: 48px; height: 48px; color: rgba(255,255,255,.3); }
.article-card-body { padding: 24px; }
.article-date { font-size: 0.8rem; color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.article-card-body h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--maroon); margin-bottom: 6px; }
.article-tagline { color: var(--gray); font-size: 0.875rem; margin-bottom: 16px; }

/* ── Page hero (inner pages) ── */
.page-hero { background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%); color: var(--white); padding: 70px 0 60px; text-align: center; }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.75rem); }
.page-hero p { margin-top: 14px; opacity: .85; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── About page ── */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.about-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.credential-card { background: var(--cream); border-radius: var(--radius); padding: 16px 20px; border-left: 3px solid var(--gold); margin-top: 20px; }
.credential-card h4 { font-size: 0.85rem; font-weight: 700; color: var(--maroon); }
.credential-card p { font-size: 0.85rem; color: var(--gray); margin-top: 2px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: 20px; }
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.review-text { font-size: 0.9rem; color: var(--gray-dark); font-style: italic; margin-top: 8px; line-height: 1.6; }
.review-author { font-size: 0.8rem; font-weight: 600; color: var(--gray); margin-top: 8px; }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-info h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--maroon); margin-bottom: 16px; }
.contact-info p { color: var(--gray); font-size: 0.95rem; margin-bottom: 12px; line-height: 1.7; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-item-icon { width: 44px; height: 44px; background: var(--gold-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 20px; height: 20px; color: var(--maroon); }
.contact-item-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); }
.contact-item-value { font-size: 0.95rem; color: var(--black); font-weight: 500; margin-top: 2px; }
.contact-item-value a { color: var(--maroon); }
.contact-item-value a:hover { text-decoration: underline; }
.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.contact-form-wrap h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--maroon); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-dark); margin-bottom: 6px; }
.form-input { width: 100%; padding: 11px 14px; border: 1.5px solid #E5E7EB; border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.95rem; color: var(--black); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.form-input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(92,22,40,.1); }
textarea.form-input { resize: vertical; min-height: 130px; }

/* ── Portal ── */
.portal-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 120px); }
.portal-sidebar { background: var(--maroon-dark); color: white; padding: 32px 0; }
.portal-sidebar-brand { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.portal-nav-link { display: block; padding: 10px 20px; color: rgba(255,255,255,.75); font-size: 0.9rem; transition: all .2s; }
.portal-nav-link:hover, .portal-nav-link.active { color: var(--gold); background: rgba(255,255,255,.06); }
.portal-badge { display: inline-block; background: var(--gold); color: var(--maroon-dark); font-size: 0.7rem; font-weight: 700; padding: 1px 7px; border-radius: 50px; margin-left: 6px; }
.portal-content { padding: 36px; background: var(--gray-light); }
.portal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.portal-header h1 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--maroon); }
.portal-table { width: 100%; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border-collapse: collapse; }
.portal-table th { background: var(--maroon); color: white; padding: 14px 18px; text-align: left; font-size: 0.8rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.portal-table td { padding: 14px 18px; border-bottom: 1px solid #F3F4F6; font-size: 0.9rem; color: var(--gray-dark); }
.portal-table tr:last-child td { border-bottom: none; }
.portal-table tr:hover td { background: var(--cream); }
.status-pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: .5px; }
.status-published { background: #D1FAE5; color: #065F46; }
.status-draft { background: #FEF3C7; color: #92400E; }

/* ── CTA Banner ── */
.cta-banner { background: linear-gradient(135deg, var(--maroon-dark), var(--maroon)); color: white; padding: 70px 0; text-align: center; }
.cta-banner h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.cta-banner p { opacity: .85; max-width: 520px; margin: 0 auto 32px; }
.cta-banner-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Testimonials ── */
.testimonial { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); position: relative; }
.testimonial::before { content: '"'; font-family: var(--font-serif); font-size: 5rem; color: var(--gold-pale); position: absolute; top: -10px; left: 20px; line-height: 1; }
.testimonial-text { font-size: 0.95rem; color: var(--gray-dark); font-style: italic; line-height: 1.7; position: relative; z-index: 1; }
.testimonial-author { margin-top: 16px; font-weight: 600; font-size: 0.875rem; color: var(--maroon); }
.testimonial-source { font-size: 0.8rem; color: var(--gray); }

/* ── Why Choose Us ── */
.why-item { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; }
.why-number { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; color: var(--gold); line-height: 1; flex-shrink: 0; width: 50px; }
.why-content h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--maroon); margin-bottom: 6px; }
.why-content p { color: var(--gray); font-size: 0.9rem; }

/* ── Footer ── */
.footer { background: var(--maroon-dark); color: rgba(255,255,255,.8); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand { }
.footer-logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.footer-tagline { font-size: 0.875rem; opacity: .75; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); opacity: .8; transition: opacity .2s; }
.footer-social:hover { opacity: 1; }
.footer-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.875rem; opacity: .75; transition: opacity .2s, color .2s; }
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; opacity: .8; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; opacity: .6; }
.footer-bottom a:hover { color: var(--gold); opacity: 1; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* ── Article / Story detail ── */
.prose { max-width: 740px; }
.prose h2 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--maroon); margin: 32px 0 12px; }
.prose h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--maroon); margin: 24px 0 10px; }
.prose p { color: var(--gray-dark); line-height: 1.8; margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 20px; }
.prose ul li { color: var(--gray-dark); line-height: 1.7; margin-bottom: 6px; list-style: disc; }
.prose strong { color: var(--black); }

/* ── Filter chips ── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-chip { padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; border: 1.5px solid #E5E7EB; color: var(--gray); cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block; }
.filter-chip:hover, .filter-chip.active { background: var(--maroon); color: white; border-color: var(--maroon); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .hero-body { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Terms of Use ─────────────────────────────────────────────────────────── */
.terms-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.terms-updated {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 40px;
  font-style: italic;
}
.terms-block {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-light);
}
.terms-block:last-child {
  border-bottom: none;
}
.terms-block h2 {
  font-family: var(--font-serif);
  color: var(--maroon);
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.terms-block p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 12px;
}
.terms-block p:last-child { margin-bottom: 0; }
.terms-block ul {
  color: var(--gray-dark);
  line-height: 1.8;
  padding-left: 24px;
  margin: 10px 0;
}
.terms-block ul li { margin-bottom: 6px; }
.terms-block a { color: var(--maroon); text-decoration: underline; }

/* ── Footer Dashboard Button ──────────────────────────────────────────────── */
.footer-dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 18px;
  background: rgba(201,165,53,0.12);
  border: 1px solid rgba(201,165,53,0.35);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.footer-dashboard-btn:hover {
  background: rgba(201,165,53,0.22);
  border-color: var(--gold);
  color: var(--gold-light);
}
.footer-dashboard-btn svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { display: none; }
  .portal-table { font-size: 0.8rem; }
  .portal-table th, .portal-table td { padding: 10px 12px; }
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }
}

/* Newsletter detail hero image (was inline style) */
.newsletter-detail-img { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 32px; object-fit: contain; }

/* Biography content (rich text from CKE5) */
.bio-content { color: var(--gray-dark); line-height: 1.8; margin-bottom: 32px; }
.bio-content p { margin-bottom: 18px; }
.bio-content p:last-child { margin-bottom: 0; }
.bio-content h2, .bio-content h3, .bio-content h4 { font-family: var(--font-serif); color: var(--maroon); margin: 24px 0 12px; }
.bio-content h2 { font-size: 1.5rem; }
.bio-content h3 { font-size: 1.25rem; }
.bio-content h4 { font-size: 1.1rem; }
.bio-content ul, .bio-content ol { padding-left: 22px; margin-bottom: 18px; }
.bio-content li { margin-bottom: 6px; }
.bio-content a { color: var(--maroon); font-weight: 600; }
.bio-content blockquote { border-left: 3px solid var(--gold); padding-left: 16px; margin: 16px 0; color: var(--gray); font-style: italic; }
.bio-callout { background: var(--cream); border-radius: 12px; padding: 32px; margin-bottom: 32px; }
.bio-callout h3 { font-family: var(--font-serif); color: var(--maroon); margin-bottom: 20px; font-size: 1.25rem; }
.bio-callout-body { color: var(--gray-dark); line-height: 1.8; }
.bio-callout-body p { margin-bottom: 12px; }
.bio-callout-body p:last-child { margin-bottom: 0; }
.bio-callout-body a { color: var(--maroon); font-weight: 600; }

/* Clickable article-card image + title */
.article-card-img-link { display: block; }
.article-title-link { color: inherit; text-decoration: none; transition: color .2s; }
.article-title-link:hover { color: var(--gold); }


/* ── Consult Hot Sheets (staff portal) ───────────────────────────────── */
.hs-sub { margin: 4px 0 0; font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.hs-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.hs-switch a { display: inline-block; padding: 7px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; color: var(--maroon); background: var(--white); border: 1px solid #E5E7EB; }
.hs-switch a:hover { background: var(--gold-pale); }
.hs-switch a.active { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.hs-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .hs-grid { grid-template-columns: 1fr 320px; } .hs-side { position: sticky; top: 24px; } }
.hs-main, .hs-side { display: grid; gap: 20px; }
.hs-panel { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px 26px; }
.hs-panel--accent { border-left: 4px solid var(--gold); }
.hs-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hs-step-head h2 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--maroon); }
.hs-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--maroon-dark); color: var(--gold); font: 700 0.85rem/30px var(--font-sans); text-align: center; }
.hs-lead { color: var(--gray); font-size: 0.9rem; margin-bottom: 16px; }
.hs-q { display: flex; gap: 14px; background: var(--cream); border: 1px solid #E5E7EB; border-radius: var(--radius); padding: 14px 16px; }
.hs-q + .hs-q { margin-top: 10px; }
.hs-qn { color: var(--gold); font-weight: 700; font-size: 0.82rem; flex: 0 0 auto; padding-top: 2px; }
.hs-qt { font-weight: 600; font-size: 0.94rem; color: var(--black); }
.hs-note { margin-top: 4px; font-size: 0.85rem; color: var(--gray); line-height: 1.6; }
.hs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.hs-card { background: var(--cream); border: 1px solid #E5E7EB; border-radius: var(--radius); padding: 14px 16px; }
.hs-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-weight: 700; font-size: 0.94rem; color: var(--maroon); margin-bottom: 8px; }
.hs-card-pills { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.hs-card ul { list-style: disc; margin: 0; padding-left: 18px; font-size: 0.84rem; color: var(--gray-dark); line-height: 1.6; }
.hs-card li + li { margin-top: 3px; }
.hs-pill { display: inline-block; font: 700 0.63rem/1 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; padding: 5px 9px; border-radius: 50px; white-space: nowrap; }
.hs-pill--red { background: #FBEAEA; color: #B3261E; }
.hs-pill--amber { background: var(--gold-pale); color: #7A6210; }
.hs-pill--green { background: #E7F0E9; color: #24603A; }
.hs-pill--notset { background: #FDF0D5; color: #92610A; border: 1px solid #EBCB8B; }
.hs-legend { background: var(--gray-light); border-radius: var(--radius); padding: 10px 14px; font-size: 0.82rem; color: var(--gray-dark); line-height: 1.6; margin-bottom: 14px; }
.hs-block { background: var(--cream); border: 1px solid #E5E7EB; border-radius: var(--radius); padding: 14px 16px; font-size: 0.9rem; color: var(--gray-dark); line-height: 1.7; }
.hs-block + .hs-block { margin-top: 10px; }
.hs-block--gold { background: var(--gold-pale); border-color: var(--gold); }
.hs-block--warn { background: #FBEAEA; border-color: #E2B4B0; color: #7A1C16; }
/* Live-law and scope warnings on the consult hot sheets — Bill 60 dates, By-Law 4 scope. */
.hs-alert { background: #FBEAEA; border: 1px solid #E2B4B0; border-radius: var(--radius); padding: 12px 16px; font-size: 0.88rem; color: #7A1C16; line-height: 1.7; margin-bottom: 12px; }
.hs-alert + .hs-alert { margin-top: -2px; }
.hs-alert strong { color: #5E1511; }
.hs-kicker { font: 700 0.7rem/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: #7A6210; margin-bottom: 6px; }
.hs-ladder { list-style: decimal; padding-left: 20px; font-size: 0.88rem; color: var(--gray-dark); line-height: 1.7; }
.hs-ladder li + li { margin-top: 3px; }
.hs-dos { list-style: decimal; padding-left: 20px; font-size: 0.9rem; color: var(--gray-dark); line-height: 1.7; }
.hs-dos li + li { margin-top: 6px; }
.hs-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; font-size: 0.84rem; line-height: 1.6; }
.hs-tri { border-radius: var(--radius); padding: 12px 14px; border: 1px solid; }
.hs-tri-h { font-weight: 700; margin-bottom: 4px; }
.hs-tri--do { background: #E7F0E9; border-color: #B9D6C2; color: #24603A; }
.hs-tri--dont { background: #FBEAEA; border-color: #E2B4B0; color: #7A1C16; }
.hs-tri--why { background: #E8EEF6; border-color: #C1D0E4; color: #274468; }
.hs-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; color: var(--gray-dark); }
.hs-table th { text-align: left; padding: 8px 10px; background: var(--gray-light); color: var(--maroon); font-size: 0.72rem; letter-spacing: .07em; text-transform: uppercase; }
.hs-table td { padding: 9px 10px; border-bottom: 1px solid #E5E7EB; vertical-align: top; line-height: 1.6; }
.hs-table tr:last-child td { border-bottom: none; }
.hs-acc { border: 1px solid #E5E7EB; border-radius: var(--radius); background: var(--cream); }
.hs-acc + .hs-acc { margin-top: 8px; }
.hs-acc summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 0.9rem; color: var(--maroon); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hs-acc summary::-webkit-details-marker { display: none; }
.hs-acc summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.hs-acc[open] summary::after { content: "\2212"; }
.hs-acc p { margin: 0 16px 14px; padding-top: 12px; border-top: 1px solid #E5E7EB; font-size: 0.88rem; color: var(--gray-dark); line-height: 1.7; }
.hs-side-h { font: 700 0.76rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); margin-bottom: 14px; }
.hs-fee-banner { background: #FDF0D5; border: 1px solid #EBCB8B; border-radius: var(--radius); padding: 12px 14px; font-size: 0.82rem; color: #7A4E06; line-height: 1.6; font-weight: 600; margin-bottom: 14px; }
.hs-fees { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.hs-fees td { padding: 8px 0; border-bottom: 1px solid #E5E7EB; color: var(--gray-dark); }
.hs-fees tr:last-child td { border-bottom: none; }
.hs-fees td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
.hs-remind { list-style: disc; margin: 0; padding-left: 18px; font-size: 0.85rem; color: var(--gray-dark); line-height: 1.6; }
.hs-remind li + li { margin-top: 7px; }

@media print {
  .no-print, .topbar, .navbar, .footer, .portal-sidebar { display: none !important; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-content { padding: 0; background: var(--white); }
  .hs-grid { grid-template-columns: 1fr 260px; }
  .hs-panel { box-shadow: none; border: 1px solid #E5E7EB; break-inside: avoid; }
  .hs-acc { break-inside: avoid; }
  .hs-acc:not([open]) p { display: block; }
}
