/*
Theme Name: Specialist Forensic Pathology
Theme URI: https://example.com
Author: Your Agency Name
Author URI: https://example.com
Description: Custom HPCSA-compliant theme for Specialist Forensic Pathology Medicolegal Experts (Pty) Ltd. Clinical, editorial design with a dynamic Forensic Insights blog, custom Medico-Legal Services listing, and a secure case-intake enquiry form.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sfp-medicolegal
*/

@font-face{ font-family:'Plus Jakarta Sans'; src:url('assets/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face{ font-family:'Plus Jakarta Sans'; src:url('assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face{ font-family:'Plus Jakarta Sans'; src:url('assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face{ font-family:'Inter'; src:url('assets/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face{ font-family:'Inter'; src:url('assets/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face{ font-family:'Inter'; src:url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight:600; font-display:swap; }

:root{
  --navy:#12233D;
  --navy-2:#1C3253;
  --slate:#4B5560;
  --slate-light:#7C8791;
  --white:#FFFFFF;
  --body-bg:#EFF2F5;
  --paper:#F6F5F1;
  --gold:#96793C;
  --line:#D9D4C8;
  --line-soft:#E2E6EA;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:'Inter', Arial, sans-serif;
  color:var(--slate);
  background:var(--body-bg);
  font-size:15px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:'Plus Jakarta Sans', Arial, sans-serif; color:var(--navy); font-weight:700; letter-spacing:-0.015em; margin:0 0 .5em 0; }
p{ margin:0 0 14px 0; max-width:680px; }
a{ color:var(--navy); }
img{ max-width:100%; height:auto; display:block; }
ul,ol{ padding-left:1.1em; }

.skip-link{ position:absolute; left:-9999px; top:0; background:var(--navy); color:#fff; padding:10px 16px; z-index:999; }
.skip-link:focus{ left:8px; top:8px; }

.page-shell{ position:relative; padding-left:64px; }
.margin-rule{ position:absolute; left:36px; top:0; bottom:0; width:1px; background:var(--line); }
.wrap{ max-width:1040px; margin:0 auto; padding:0 56px 0 8px; }

/* Header */
.site-header{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
  padding:26px 56px 26px 64px; margin-left:-64px;
  background:var(--navy);
  border-bottom:2px solid var(--gold);
}
.site-branding{ line-height:1.3; }
.site-branding a{ text-decoration:none; }
.site-title{ font-family:'Plus Jakarta Sans', sans-serif; font-weight:700; font-size:16px; color:var(--white); letter-spacing:-0.01em; margin:0; }
.site-description{ font-family:'Inter'; font-weight:500; font-size:9.5px; letter-spacing:0.14em; text-transform:uppercase; color:#8FA0B8; margin:3px 0 0 0; }

.primary-nav ul{ list-style:none; display:flex; flex-wrap:wrap; margin:0; padding:0; }
.primary-nav li{ margin-left:28px; }
.primary-nav li:first-child{ margin-left:0; }
.primary-nav a{ font-size:12px; font-weight:500; color:#C3CEDB; text-decoration:none; letter-spacing:0.02em; padding-bottom:3px; border-bottom:1px solid transparent; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a{ color:var(--white); border-bottom-color:var(--gold); }
.menu-toggle{ display:none; }

/* Footer */
.site-footer{
  margin-top:60px; padding:34px 56px 34px 64px; margin-left:-64px; background:var(--navy);
  display:flex; justify-content:space-between; align-items:flex-start; gap:40px; flex-wrap:wrap;
}
.footer-col{ font-size:11.5px; color:#8FA0B8; line-height:1.8; min-width:200px; }
.footer-col b, .footer-col strong{ display:block; color:var(--white); font-size:11px; font-weight:600; margin-bottom:4px; }
.footer-col a{ color:#8FA0B8; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-widgets{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; width:100%; }

/* Marginal note */
.marginal{ font-size:10.5px; color:var(--slate-light); letter-spacing:0.06em; text-transform:uppercase; margin-bottom:18px; font-weight:600; }

/* Hero */
.hero{ padding:52px 0 46px 0; border-bottom:1px solid var(--line); }
.hero h1{ font-size:37px; line-height:1.2; max-width:760px; }
.hero .lede{ font-size:15.5px; color:var(--slate); max-width:600px; margin-top:18px; }
.hero .footnote{ margin-top:26px; padding-top:16px; border-top:1px solid var(--line-soft); font-size:11.5px; color:var(--slate-light); max-width:560px; }

/* Tiles */
.tiles{ display:flex; flex-wrap:wrap; }
.tile{ flex:1 1 220px; padding:26px 22px 26px 0; border-right:1px solid var(--line-soft); }
.tile:last-child{ border-right:none; }
.tile .num{ font-size:11px; color:var(--gold); font-weight:700; margin-bottom:10px; }
.tile h3{ font-size:16px; margin-bottom:8px; }
.tile p{ font-size:12.5px; color:var(--slate-light); margin:0; }

.section{ padding:44px 0; border-bottom:1px solid var(--line); }
.section-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:26px; flex-wrap:wrap; gap:8px; }
.section-head h2{ font-size:22px; margin:0; }
.section-head .see-all{ font-size:11.5px; color:var(--slate-light); text-decoration:none; }

/* Credibility strip */
.credibility{ display:flex; flex-wrap:wrap; gap:44px; padding:28px 0; }
.credibility div{ font-size:12px; color:var(--slate); max-width:230px; }
.credibility b{ display:block; color:var(--navy); font-weight:700; font-size:12.5px; margin-bottom:4px; }

/* Insight cards */
.insight-list{ display:flex; flex-direction:column; }
.insight-row{ display:flex; gap:28px; padding:22px 0; border-top:1px solid var(--line-soft); flex-wrap:wrap; }
.insight-row:first-child{ border-top:none; }
.insight-row .tag{ width:150px; flex-shrink:0; font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold); font-weight:700; padding-top:3px; }
.insight-row .tag .insight-date{ display:block; color:var(--slate-light); font-weight:500; text-transform:none; letter-spacing:0; font-size:10.5px; margin-top:4px; }
.insight-row .body h3{ font-size:16px; margin-bottom:6px; }
.insight-row .body h3 a{ text-decoration:none; color:var(--navy); }
.insight-row .body p{ font-size:12.5px; color:var(--slate-light); margin:0; }
.no-posts{ font-size:13px; color:var(--slate-light); }

/* CTA band */
.cta-band{ background:var(--navy); color:var(--white); padding:36px 44px; margin:44px 0; display:flex; justify-content:space-between; align-items:center; gap:30px; flex-wrap:wrap; }
.cta-band h3{ color:var(--white); font-size:19px; margin-bottom:6px; }
.cta-band p{ color:#C9D2DC; font-size:12.5px; margin:0; max-width:420px; }
.btn{ display:inline-block; border:1px solid var(--white); color:var(--white); text-decoration:none; font-size:12px; font-weight:600; padding:11px 22px; letter-spacing:0.02em; white-space:nowrap; background:transparent; cursor:pointer; font-family:'Inter'; }
.btn:hover{ background:var(--white); color:var(--navy); }

/* Content / entry */
.entry-content{ max-width:700px; font-size:14px; }
.entry-content h2{ font-size:21px; margin-top:1.4em; }
.entry-content h3{ font-size:17px; margin-top:1.2em; }
.entry-content ul, .entry-content ol{ font-size:14px; }

table.quals{ width:100%; border-collapse:collapse; margin-top:6px; }
table.quals td{ padding:9px 0; border-top:1px solid var(--line-soft); font-size:13px; color:var(--slate); }
table.quals td.year{ width:110px; color:var(--slate-light); font-size:12px; }

.affil-list{ list-style:none; margin:0; padding:0; }
.affil-list li{ padding:9px 0; border-top:1px solid var(--line-soft); font-size:13px; }
.affil-list li:first-child{ border-top:none; }

.doc-link{ display:inline-flex; align-items:center; gap:10px; border:1px solid var(--navy); padding:12px 20px; font-size:12.5px; font-weight:600; color:var(--navy); text-decoration:none; margin-top:8px; }
.doc-link:hover{ background:var(--navy); color:#fff; }

/* Service entries */
.service{ padding:28px 0; border-top:1px solid var(--line-soft); }
.service:first-child{ border-top:none; }
.service-grid{ display:flex; gap:36px; flex-wrap:wrap; }
.service-grid .left{ width:230px; flex-shrink:0; }
.service-grid .left h3{ font-size:17px; margin-bottom:8px; }
.service-grid .right{ flex:1; min-width:280px; }
.meta-row{ display:flex; flex-wrap:wrap; margin-top:14px; }
.meta-item{ font-size:11.5px; flex:1 1 180px; margin-right:30px; margin-bottom:10px; }
.meta-item:last-child{ margin-right:0; }
.meta-item b{ display:block; color:var(--navy); font-weight:700; margin-bottom:3px; font-size:10.5px; letter-spacing:0.04em; text-transform:uppercase; }

/* Protocol steps */
.protocol{ counter-reset:step; }
.step{ display:flex; gap:22px; padding:22px 0; border-top:1px solid var(--line-soft); }
.step:first-child{ border-top:none; }
.step .step-num{ width:34px; height:34px; border:1px solid var(--navy); color:var(--navy); font-family:'Plus Jakarta Sans'; font-weight:700; font-size:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.step h3{ font-size:14.5px; margin-bottom:5px; }
.step p{ font-size:12.5px; margin:0; color:var(--slate-light); }

.notice{ border:1px solid var(--line); background:var(--paper); padding:20px 24px; font-size:12px; color:var(--slate); margin-top:20px; }
.notice b{ color:var(--navy); }

/* Contact form */
.sfp-form{ display:flex; flex-direction:column; gap:16px; max-width:520px; margin-top:10px; }
.sfp-form .form-row{ display:flex; gap:16px; flex-wrap:wrap; }
.sfp-form .field{ flex:1 1 220px; }
.sfp-form label{ display:block; font-size:11px; color:var(--slate-light); margin-bottom:6px; letter-spacing:0.03em; }
.sfp-form input[type=text], .sfp-form input[type=email], .sfp-form input[type=tel], .sfp-form textarea{
  width:100%; border:1px solid var(--line); background:var(--white); font-family:'Inter'; font-size:13px; padding:9px 11px;
}
.sfp-form textarea{ min-height:84px; resize:vertical; }
.sfp-form button{ display:inline-block; background:var(--navy); color:#fff; font-size:12px; font-weight:600; padding:12px 26px; border:none; width:fit-content; cursor:pointer; font-family:'Inter'; }
.sfp-form button:hover{ background:var(--navy-2); }
.form-success{ border:1px solid #9FBF9A; background:#F1F7F0; color:#2E5A2A; padding:14px 18px; font-size:12.5px; margin-top:10px; }
.form-error{ border:1px solid #D9A5A0; background:#FAF0EF; color:#7A2E27; padding:14px 18px; font-size:12.5px; margin-top:10px; }
.honeypot-field{ position:absolute; left:-9999px; }

.contact-block{ font-size:13px; margin-top:8px; }
.contact-block div{ padding:6px 0; }
.contact-block b{ color:var(--navy); display:inline-block; width:120px; }

/* Pagination */
.sfp-pagination{ margin-top:30px; font-size:12.5px; display:flex; gap:18px; }
.sfp-pagination a{ text-decoration:none; }

@media (max-width: 760px){
  .page-shell{ padding-left:0; }
  .margin-rule{ display:none; }
  .site-header{ margin-left:0; padding-left:24px; padding-right:24px; }
  .site-footer{ margin-left:0; padding-left:24px; padding-right:24px; }
  .wrap{ padding:0 24px; }
  .hero h1{ font-size:28px; }
  .tile{ flex:1 1 100%; border-right:none; border-bottom:1px solid var(--line-soft); }
  .service-grid .left{ width:100%; }
}
