/* ─────────────────────────────────────────────
   inthetrial.com  |  Main Stylesheet
   ───────────────────────────────────────────── */

/* ── Tokens ─────────────────────────────────── */
:root {
  --navy:       #0F2D4E;
  --navy-deep:  #081d33;
  --blue:       #1B5EA6;
  --blue-light: #2e7dd4;
  --red:        #CC1111;
  --red-dark:   #a80e0e;
  --off-white:  #f5f7fa;
  --light-blue: #D5E8F5;
  --mid-grey:   #6b7a8d;
  --border:     #d4dce8;
  --white:      #ffffff;
  --text:       #1a2535;
  --text-light: #4a5568;
  --card-shadow: 0 2px 12px rgba(15,45,78,.10);
  --card-hover:  0 6px 24px rgba(15,45,78,.18);
  --radius:     8px;
  --radius-lg:  14px;
  --font:       'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-head:  Impact, 'Arial Narrow', Arial, sans-serif;
}

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

/* ── Utilities ───────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red);
}
.live-dot::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

/* ── Site Header ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1160px; margin: 0 auto;
}
.site-logo svg { height: 44px; width: auto; }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,.78);
  font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: background .18s, color .18s;
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a.active { color: #fff; background: rgba(204,17,17,.25); }
.nav-cta {
  background: var(--red) !important; color: #fff !important;
  font-weight: 700 !important; margin-left: 8px;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #1a4a7a 100%);
  color: #fff; padding: 72px 24px 80px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  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='%23ffffff' fill-opacity='0.02'%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");
  pointer-events: none;
}
.hero-tag { display: inline-block; margin-bottom: 20px; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: .04em; line-height: 1.1;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 span { color: var(--red); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 620px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── Stats bar ───────────────────────────────── */
.stats-bar {
  background: var(--navy); color: #fff;
  padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.stats-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; gap: 40px; align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--red); line-height: 1; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ── Filters ─────────────────────────────────── */
.filters-wrap {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 24px; position: sticky; top: 75px; z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.filters-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.filter-label { font-size: 13px; font-weight: 600; color: var(--mid-grey); white-space: nowrap; }
.filter-btn {
  padding: 7px 18px; border-radius: 20px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-light); transition: .18s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
}
.search-wrap { margin-left: auto; position: relative; }
.search-input {
  padding: 8px 14px 8px 36px; border-radius: 20px;
  border: 1.5px solid var(--border); font-size: 13px;
  width: 220px; outline: none; transition: border .18s;
  font-family: var(--font);
}
.search-input:focus { border-color: var(--blue); }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--mid-grey); font-size: 14px; pointer-events: none;
}

/* ── Trial Grid ──────────────────────────────── */
.trials-section { padding: 48px 24px 64px; }
.section-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px;
}
.section-title {
  font-size: 1.4rem; font-weight: 800;
  color: var(--navy); letter-spacing: -.01em;
}
.trial-count {
  font-size: 13px; color: var(--mid-grey); font-weight: 500;
}
.trials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.no-results {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 20px; color: var(--mid-grey);
  font-size: 1rem;
}

/* ── Trial Card ──────────────────────────────── */
.trial-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.trial-card:hover { box-shadow: var(--card-hover); transform: translateY(-3px); }
.card-flag {
  height: 4px;
}
.flag-us { background: linear-gradient(90deg, #B22234, #3C3B6E); }
.flag-intl { background: linear-gradient(90deg, #1B5EA6, #4DA8DA); }
.flag-au { background: linear-gradient(90deg, #00008B, #CC0000); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.badge-us { background: #e8f0fb; color: var(--blue); }
.badge-intl { background: #e8f4e8; color: #1a6b3c; }
.badge-au { background: #fff3e0; color: #b45309; }
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.status-scheduled { background: #e8f5e9; color: #2e7d32; }
.status-ongoing   { background: #e3f2fd; color: #1565c0; }
.status-concluded { background: #fce4ec; color: #c62828; }
.status-awaiting  { background: #fff8e1; color: #f57f17; }
.status-guilty    { background: #fce4ec; color: #c62828; }
.card-title {
  font-size: 1.05rem; font-weight: 800;
  color: var(--navy); line-height: 1.3;
  margin-bottom: 2px;
}
.card-defendant { font-size: 13px; color: var(--mid-grey); font-weight: 500; }
.card-court { font-size: 12.5px; color: var(--text-light); }
.card-charges {
  font-size: 13px; color: var(--text-light);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-date {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.card-date svg { flex-shrink: 0; }
.card-footer {
  padding: 14px 20px; background: var(--off-white);
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
}
.card-link {
  font-size: 13px; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 4px;
  transition: color .15s;
}
.card-link:hover { color: var(--red); }
.livestream-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--red);
  margin-left: auto;
  transition: color .15s;
}
.livestream-link:hover { color: var(--red-dark); }

/* ── About Strip ─────────────────────────────── */
.about-strip {
  background: var(--navy); color: #fff;
  padding: 64px 24px;
}
.about-inner {
  max-width: 860px; margin: 0 auto; text-align: center;
}
.about-inner h2 {
  font-size: 2rem; font-weight: 800; margin-bottom: 18px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em;
}
.about-inner h2 span { color: var(--red); }
.about-inner p {
  color: rgba(255,255,255,.8); font-size: 1.05rem;
  margin-bottom: 14px; line-height: 1.7;
}
.about-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; margin-top: 40px; text-align: left;
}
.feature {
  background: rgba(255,255,255,.07); border-radius: var(--radius);
  padding: 22px; border: 1px solid rgba(255,255,255,.1);
}
.feature-icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: .87rem; color: rgba(255,255,255,.65); line-height: 1.5; }

/* ── Newsletter ──────────────────────────────── */
.newsletter {
  background: var(--red); color: #fff;
  padding: 52px 24px; text-align: center;
}
.newsletter h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.newsletter p { font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.nl-form {
  display: flex; gap: 10px; max-width: 480px;
  margin: 0 auto; flex-wrap: wrap; justify-content: center;
}
.nl-input {
  flex: 1; min-width: 220px; padding: 13px 18px;
  border-radius: var(--radius); border: none;
  font-size: 15px; font-family: var(--font);
  outline: none;
}
.nl-btn {
  padding: 13px 26px; border-radius: var(--radius);
  background: var(--navy); color: #fff; border: none;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--font); transition: background .15s;
}
.nl-btn:hover { background: var(--navy-deep); }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.6);
  padding: 48px 24px 28px; border-top: 3px solid var(--red);
}
.footer-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.6; margin-top: 14px; color: rgba(255,255,255,.55); }
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.4); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13.5px;
  color: rgba(255,255,255,.65); margin-bottom: 10px;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; line-height: 1.7;
}
.footer-disclaimer { color: rgba(255,255,255,.45); margin-bottom: 12px; }
.footer-copy { color: rgba(255,255,255,.3); }

/* ── Trial Detail Page ───────────────────────── */
.trial-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; padding: 52px 24px 56px;
}
.trial-hero-inner { max-width: 860px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; }
.trial-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800;
  line-height: 1.2; margin: 14px 0 16px;
}
.trial-meta-chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.trial-content { max-width: 860px; margin: 0 auto; padding: 48px 24px 72px; }
.trial-grid { display: grid; grid-template-columns: 1fr 340px; gap: 36px; }
.trial-body h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--navy);
  margin: 28px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--light-blue);
}
.trial-body p { font-size: 1rem; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.trial-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--card-shadow);
}
.sidebar-card h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--mid-grey); margin-bottom: 14px;
}
.detail-row { display: flex; flex-direction: column; margin-bottom: 14px; }
.detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--mid-grey); margin-bottom: 3px; }
.detail-value { font-size: 14px; font-weight: 600; color: var(--text); }
.livestream-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; border-radius: var(--radius);
  background: var(--red); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  border: none; cursor: pointer; transition: background .15s, box-shadow .15s;
  text-decoration: none;
}
.livestream-btn::before {
  content: ''; flex-shrink: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}
.livestream-btn:hover {
  background: #fff;
  color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}
.livestream-btn:hover::before { background: var(--red); }
.source-link {
  font-size: 13px; color: var(--blue); display: flex;
  align-items: center; gap: 4px; margin-top: 10px;
}
.source-link:hover { text-decoration: underline; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--blue);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--red); }

/* ── About Page ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; padding: 56px 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .04em;
}
.page-hero h1 span { color: var(--red); }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-top: 14px; max-width: 600px; margin-left: auto; margin-right: auto; }
.page-content { max-width: 860px; margin: 0 auto; padding: 56px 24px 72px; }
.page-content h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin: 36px 0 14px; }
.page-content p { font-size: 1rem; color: var(--text-light); line-height: 1.75; margin-bottom: 16px; }
.page-content ul { padding-left: 22px; list-style: disc; }
.page-content li { font-size: 1rem; color: var(--text-light); line-height: 1.7; margin-bottom: 8px; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .trial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .site-nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep); padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .site-header { position: relative; }
  .filters-wrap { position: static; }
  .filters-inner { gap: 8px; }
  .search-wrap { width: 100%; margin-left: 0; }
  .search-input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .trials-grid { grid-template-columns: 1fr; }
}
