/*
Theme Name: Florida Hellthcare
Theme URI: https://floridahellthcare.com
Author: Florida Hellthcare
Description: A professional civic advocacy and legal-research theme concerning Florida medical-negligence accountability.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: florida-hellthcare
*/

:root {
  --ink: #102a43;
  --ink-2: #243b53;
  --muted: #52667a;
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: #d8e2ec;
  --blue: #0b5e75;
  --blue-dark: #073b4c;
  --coral: #c7473f;
  --gold: #d99a2b;
  --focus: #ffbf47;
  --shadow: 0 18px 50px rgba(16, 42, 67, .10);
  --radius: 18px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.7; }
body::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, var(--coral) 0 38%, var(--gold) 38% 50%, var(--blue) 50% 100%); }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; padding: .7rem 1rem; margin: 0; clip: auto; background: var(--white); color: var(--ink); border-radius: 6px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(246,248,251,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--ink); border-left: 7px solid var(--coral); border-radius: 7px; font-family: var(--serif); font-size: 1.25rem; }
.brand-text span { color: var(--coral); }
.site-nav ul { display: flex; align-items: center; gap: 22px; padding: 0; margin: 0; list-style: none; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 700; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--coral); }
.nav-toggle { display: none; padding: .55rem .75rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }

.hero { position: relative; overflow: hidden; color: white; background: var(--ink); }
.hero::after { content: '§'; position: absolute; right: -40px; bottom: -165px; color: rgba(255,255,255,.045); font: 720px/1 var(--serif); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; min-height: 650px; padding-block: 80px; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 850px; margin-bottom: 1.35rem; font: 700 clamp(2.8rem, 6.7vw, 5.8rem)/.98 var(--serif); }
h2 { font: 700 clamp(2rem, 4vw, 3.25rem)/1.05 var(--serif); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.hero-lede { max-width: 720px; color: #d9e2ec; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-byline { margin-top: 1.4rem; color: #b9c8d5; font-size: .94rem; font-weight: 700; }
.hero-byline a { color: white; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.button, button.button, input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .72rem 1.1rem; color: white; background: var(--coral); border: 2px solid var(--coral); border-radius: 8px; text-decoration: none; font-weight: 800; cursor: pointer; }
.button:hover { color: white; background: #a93632; border-color: #a93632; }
.button-outline { color: white; background: transparent; border-color: rgba(255,255,255,.55); }
.button-outline:hover { background: white; border-color: white; color: var(--ink); }
.button-dark { background: var(--ink); border-color: var(--ink); }
.hero-card { padding: 28px; color: var(--ink); background: var(--white); border-top: 7px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(1.4deg); }
.hero-card .stat { display: block; color: var(--coral); font: 700 3.7rem/1 var(--serif); }
.hero-card p { margin-bottom: 0; }

.section { padding-block: 90px; }
.section-white { background: white; }
.section-dark { color: white; background: var(--blue-dark); }
.section-dark p { color: #d9e2ec; }
.section-heading { max-width: 780px; margin-bottom: 42px; }
.section-heading p { color: var(--muted); font-size: 1.1rem; }
.kicker { color: var(--coral); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(16,42,67,.06); }
.card-number { display: block; margin-bottom: 22px; color: var(--coral); font: 700 2.4rem/1 var(--serif); }
.card p:last-child { margin-bottom: 0; }
.callout { padding: 30px 34px; background: #fff8e8; border-left: 7px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.callout strong { color: var(--coral); }
.comparison { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.comparison > div { padding: 32px; }
.comparison > div + div { border-left: 1px solid var(--line); }
.comparison .yes { border-top: 6px solid var(--blue); }
.comparison .no { border-top: 6px solid var(--coral); }
.comparison ul { padding-left: 1.2rem; }

.timeline { position: relative; max-width: 900px; margin-inline: auto; }
.timeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 100px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 48px; padding-bottom: 34px; }
.timeline-year { color: var(--coral); font-weight: 900; text-align: right; }
.timeline-content { position: relative; padding: 0 0 0 8px; }
.timeline-content::before { content: ''; position: absolute; top: 7px; left: -35px; width: 13px; height: 13px; background: var(--gold); border: 4px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.timeline-content p { margin-top: .3rem; color: var(--muted); }

.page-hero { padding-block: 72px 60px; color: white; background: var(--ink); }
.page-hero h1 { max-width: 900px; margin-bottom: .9rem; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.page-hero p { max-width: 760px; margin: 0; color: #d9e2ec; font-size: 1.16rem; }
.research-credit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 24px; color: #c7d5e1; font-size: .9rem; }
.research-credit strong { color: white; font-size: 1rem; }
.research-credit small { flex-basis: 100%; color: #9fb3c8; }
.researcher-feature, .attribution-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 45px; align-items: center; }
.citation-card { padding: 25px; background: #fff8e8; border: 1px solid #edcf8f; border-top: 6px solid var(--gold); border-radius: 14px; }
.citation-card label { display: block; margin-bottom: 10px; font-weight: 800; }
.citation-card textarea { width: 100%; min-height: 145px; padding: 14px; margin-bottom: 12px; color: var(--ink); background: white; border: 1px solid #9fb3c8; border-radius: 7px; resize: vertical; }
.attribution-panel { padding: 34px; margin-bottom: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-content { padding-block: 70px 100px; }
.entry-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.entry-content > .wide, .entry-content > .wp-block-group.alignwide { max-width: 1080px; }
.entry-content h2 { margin-top: 3.4rem; }
.entry-content h3 { margin-top: 2.3rem; }
.entry-content blockquote { padding: 22px 28px; background: white; border-left: 6px solid var(--coral); }
.entry-content table { width: 100%; border-collapse: collapse; background: white; }
.entry-content th, .entry-content td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: #eaf1f5; }
.source-note { color: var(--muted); font-size: .88rem; }
.notice { padding: 20px 24px; background: #e8f4f7; border: 1px solid #abd8e2; border-radius: 12px; }

.resource-tools { display: flex; gap: 12px; margin: 28px 0; }
.resource-tools input, .resource-tools select { min-height: 50px; padding: .7rem .85rem; background: white; border: 1px solid #9fb3c8; border-radius: 8px; }
.resource-tools input { flex: 1; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource-card { display: flex; flex-direction: column; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.resource-card[hidden] { display: none; }
.resource-type { color: var(--coral); font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.resource-card h3 { margin: .6rem 0; }
.resource-card p { color: var(--muted); font-size: .94rem; }
.resource-card a { margin-top: auto; font-weight: 800; }

.action-message { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.action-message textarea { width: 100%; min-height: 260px; padding: 18px; border: 1px solid #9fb3c8; border-radius: 8px; resize: vertical; }
.copy-status { min-height: 1.5em; color: var(--blue); font-weight: 700; }

.fh-form { max-width: 780px; padding: 30px; margin: 30px auto; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 5px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem; color: var(--ink); background: white; border: 1px solid #829ab1; border-radius: 7px; }
.field textarea { min-height: 180px; resize: vertical; }
.field-help { margin: 4px 0 0; color: var(--muted); font-size: .83rem; }
.form-alert { max-width: 780px; padding: 16px 20px; margin: 25px auto; background: #e7f6ed; border: 1px solid #8acaa1; border-radius: 10px; }
.form-alert.error { background: #fff0ef; border-color: #dc9a96; }
.hp-field { position: absolute; left: -9999px; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.post-card time { color: var(--muted); font-size: .82rem; }
.post-card h3 { margin: .7rem 0; }
.post-card a { text-decoration: none; }
.post-meta { color: var(--muted); font-size: .88rem; }
.pagination { margin-top: 35px; }

.site-footer { padding-block: 55px 28px; color: #d9e2ec; background: #071c2d; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 45px; }
.site-footer h2, .site-footer h3 { color: white; font-family: var(--sans); font-size: 1rem; letter-spacing: 0; }
.site-footer a { color: #d9e2ec; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { padding-top: 25px; margin-top: 35px; border-top: 1px solid rgba(255,255,255,.14); color: #9fb3c8; font-size: .82rem; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 78px; right: 20px; left: 20px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav li + li { margin-top: 10px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { max-width: 540px; transform: none; }
  .grid-3, .resource-grid, .posts-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .researcher-feature, .attribution-panel { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: min(100% - 28px, 1180px); }
  .brand-text { font-size: .92rem; }
  .hero-grid { gap: 42px; padding-block: 58px; }
  .section { padding-block: 65px; }
  .grid-2, .grid-3, .resource-grid, .posts-grid, .footer-grid, .form-grid, .comparison { grid-template-columns: 1fr; }
  .comparison > div + div { border-left: 0; }
  .timeline::before { left: 17px; }
  .timeline-item { grid-template-columns: 1fr; gap: 5px; padding-left: 45px; }
  .timeline-year { text-align: left; }
  .timeline-content::before { left: -34px; }
  .resource-tools { flex-direction: column; }
  .fh-form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body::before, .site-header, .site-footer, .hero-actions, .nav-toggle, .resource-tools, .button { display: none !important; }
  body, .hero, .page-hero, .section-dark { color: #000; background: #fff; }
  .hero-grid { min-height: auto; padding: 0; }
  .hero-lede, .page-hero p, .section-dark p { color: #222; }
  a { color: #000; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 9pt; word-break: break-all; }
}
