/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --navy:       #1B2A4A;
  --navy-mid:   #22385E;
  --navy-light: #2E4A72;
  --ice:        #C8E8F0;
  --ice-light:  #E8F5F9;
  --ice-faint:  #F2FAFC;
  --green:      #2E7D52;
  --green-lt:   #E8F4EE;
  --red:        #C0392B;
  --red-lt:     #FFF0EE;
  --amber:      #D4860A;
  --amber-lt:   #FFF8E8;
  --gray-100:   #F4F6F8;
  --gray-200:   #E8EBF0;
  --gray-400:   #B0BAC8;
  --gray-600:   #6B7A90;
  --white:      #FFFFFF;
  --text:       #1B2A4A;
  --font:       'DM Sans', sans-serif;
  --mono:       'DM Mono', monospace;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 1px 4px rgba(27,42,74,.08), 0 4px 16px rgba(27,42,74,.06);
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--gray-100);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ── COVER ──────────────────────────────────────────────────────────────── */
.cover {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 100vh;
  position: relative;
  background: var(--navy);
}

.cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--ice);
}

.cover-left {
  display: flex;
  flex-direction: column;
  padding: 48px 48px 80px;
  position: relative;
  z-index: 2;
}

.cover-logos {
  margin-bottom: 60px;
}

.southwark-logo {
  height: 80px;
  width: auto;
}

.cover-text {
  border-left: 5px solid var(--ice);
  padding-left: 24px;
  margin-bottom: 40px;
}

.project-name {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.report-type {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 10px;
}

.week-label {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 8px;
}

.address {
  font-size: 13px;
  color: var(--gray-400);
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-card {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.contact-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 6px;
}

.contact-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.contact-info {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.7;
}

.cover-right {
  position: relative;
  overflow: hidden;
}

.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cover-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,42,74,.6) 0%, rgba(27,42,74,.1) 100%);
}

.cover-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 52px;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 48px;
  z-index: 3;
}

.peterson-icon-sm {
  height: 24px;
  width: auto;
}

.peterson-name {
  font-size: 13px;
  color: var(--gray-600);
}

.cover-footer-right {
  margin-left: auto;
  font-size: 13px;
  color: var(--gray-400);
}

/* ── NAV ────────────────────────────────────────────────────────────────── */
.sitenav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--ice);
  box-shadow: 0 2px 12px rgba(27,42,74,.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  flex-shrink: 0;
}

.peterson-icon-nav {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all .15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(200,232,240,.15);
}

.nav-week {
  font-size: 12px;
  color: var(--ice);
  font-weight: 500;
  flex-shrink: 0;
  font-family: var(--mono);
}

/* ── SECTIONS ───────────────────────────────────────────────────────────── */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 40px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.section-week {
  font-size: 12px;
  color: var(--gray-600);
  font-family: var(--mono);
  font-style: italic;
}

/* ── SITE CONDITIONS ────────────────────────────────────────────────────── */
.weather-strip {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weather-day {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 8px 12px;
  text-align: center;
  transition: transform .1s;
}

.weather-day:hover { transform: translateY(-2px); }

.weather-day.delay {
  background: var(--red-lt);
  border-color: #F5C0BB;
}

.wd-day {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}

.weather-day.delay .wd-day { color: var(--red); }

.wd-date {
  font-size: 11px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.wd-icon {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
}

.wd-temps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wd-hi { font-size: 15px; font-weight: 600; color: var(--red); }
.wd-lo { font-size: 15px; font-weight: 600; color: #3A6EA8; }

.wd-hl {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: var(--gray-400);
  margin-bottom: 8px;
  font-family: var(--mono);
}

.wd-desc {
  font-size: 11px;
  color: var(--text);
  margin-bottom: 10px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-day.delay .wd-desc {
  color: var(--red);
  font-weight: 600;
}

.wd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto;
  background: var(--green);
}

.wd-dot.delay { background: var(--red); }

.weather-summary {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ws-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ws-card-head {
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px;
}

.ws-card-body {
  padding: 16px;
  text-align: center;
}

.ws-val {
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}

.ws-sub {
  font-size: 12px;
  color: var(--gray-600);
}

/* ── PROGRESS ───────────────────────────────────────────────────────────── */
.progress-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.list-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.list-card-header {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}

.list-card-header.navy { background: var(--navy); }
.list-card-header.gray { background: var(--gray-600); }

.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--navy);
}

.checklist.planned li::before { background: var(--ice); }

.checklist li:last-child { border-bottom: none; }

.checklist li.empty {
  color: var(--gray-400);
  font-style: italic;
  font-size: 12px;
}

.check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--navy);
}

.circle-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--gray-400);
  border-radius: 50%;
}

.progress-photo-col { }

.site-photo-wrap {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.site-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.site-photo-wrap.tall .site-photo { height: 480px; }

.photo-caption {
  padding: 8px 14px;
  font-size: 11px;
  color: var(--gray-600);
  font-style: italic;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

/* ── SCHEDULE / SAFETY / QUALITY ────────────────────────────────────────── */
.ssq-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.ssq-left { display: flex; flex-direction: column; gap: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-header {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}

.card-header.navy  { background: var(--navy); }
.card-header.green { background: var(--green); }

.completion-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--gray-200);
}

.completion-col {
  padding: 16px;
  text-align: center;
}

.completion-col:first-child {
  border-right: 1px solid var(--gray-200);
}

.completion-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.completion-date {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.bullet-list {
  list-style: none;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-list li {
  font-size: 13.5px;
  padding-left: 16px;
  position: relative;
  color: var(--text);
}

.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gray-400);
}

/* ── ACTION ITEMS ───────────────────────────────────────────────────────── */
.action-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.action-col {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.action-col-head {
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}

.action-col-head.navy  { background: var(--navy); }
.action-col-head.blue  { background: #2E5FA3; }
.action-col-head.green { background: var(--green); }

.action-table-head {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 7px 14px;
  background: var(--ice-faint);
  border-bottom: 1px solid var(--gray-200);
}

.action-table-head span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
}

.action-row:nth-child(odd) { background: var(--ice-faint); }
.action-row:last-child { border-bottom: none; }

.action-row.empty {
  color: var(--gray-400);
  font-style: italic;
  font-size: 12px;
}

.status-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  background: var(--amber-lt);
  color: var(--amber);
  border: 1px solid #F0C050;
}

/* ── BUDGET TABLE ───────────────────────────────────────────────────────── */
.table-label {
  max-width: 1200px;
  margin: 0 auto 10px;
  padding: 0 40px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.budget-table-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.budget-table thead tr {
  background: var(--navy);
}

.budget-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}

.budget-table th:not(:first-child) { text-align: right; }

.budget-table tbody tr:nth-child(even) {
  background: var(--ice-faint);
}

.budget-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.budget-table tbody tr:last-child td { border-bottom: none; }

.budget-table td:not(:first-child) { text-align: right; }

.budget-table td:first-child { font-weight: 500; }

.cell-used   { color: var(--red); font-weight: 600; }
.cell-zero   { color: var(--gray-400); }
.cell-remain { color: var(--green); font-weight: 600; }
.cell-pct    { color: var(--gray-600); font-weight: 500; font-family: var(--mono); }
.cell-pct.high { color: var(--red); }

.progress-bar-wrap {
  margin-top: 5px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width .4s ease;
}

/* PCO table tweaks */
.budget-table .pco-num { font-weight: 700; font-family: var(--mono); font-size: 13px; }
.budget-table .pco-tbd { color: var(--gray-400); font-style: italic; font-family: var(--mono); }

/* ── SITE FOOTER ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  font-size: 13px;
  color: var(--gray-400);
  border-top: 3px solid var(--ice);
}

.footer-right {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ice);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cover { grid-template-columns: 1fr; min-height: auto; }
  .cover-right { height: 300px; }
  .weather-strip { grid-template-columns: repeat(4, 1fr); }
  .progress-grid, .ssq-grid, .action-grid { grid-template-columns: 1fr; }
  .weather-summary { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
