@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Italianno&display=swap');

:root {
  --dwc-blue: #004B91;
  --dwc-blue-dark: #1e4797;
  --dwc-blue-deep: #013a72;
  --dwc-blue-light: #6aa0cd;
  --dwc-blue-tint: #eef3f9;
  --dwc-orange: #F47C27;
  --dwc-orange-dark: #d8651a;
  --dwc-orange-tint: #fde8d8;

  --paper: #ffffff;
  --bg: #f2f2f2;
  --ink: #303030;
  --ink-strong: #1a1f29;
  --muted: #707070;
  --line: #cccccc;
  --line-soft: #e6e6e6;

  --cond-excellent: #2d7a4f;
  --cond-good: #4a8c5c;
  --cond-fair: #c89a2c;
  --cond-poor: #b54a3a;
  --cond-attention: #b54a3a;
  --cond-na: #7a8294;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lift: 0 4px 16px rgba(0,75,145,0.08), 0 2px 4px rgba(0,0,0,0.06);

  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Italianno', cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--dwc-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--dwc-blue-dark); text-decoration: underline; }

/* Header */
.dwc-header {
  background: var(--paper);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  position: relative;
}
.dwc-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--dwc-blue) 0%, var(--dwc-blue) 70%, var(--dwc-orange) 70%, var(--dwc-orange) 100%);
}
.dwc-header .brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dwc-header .brand img {
  height: 48px;
  width: auto;
  display: block;
}
.dwc-header .brand-text {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dwc-blue);
  border-left: 1px solid var(--line);
  padding-left: 16px;
  line-height: 1.3;
}
.dwc-header .brand-text strong { display: block; color: var(--ink-strong); font-weight: 600; }
.dwc-header nav a {
  color: var(--muted);
  margin-left: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.dwc-header nav a:hover { color: var(--dwc-blue); text-decoration: none; }

/* Footer */
.dwc-footer {
  background: var(--dwc-blue);
  color: rgba(255,255,255,0.85);
  padding: 36px 28px 28px;
  margin-top: 72px;
  position: relative;
}
.dwc-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dwc-orange);
}
.dwc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.dwc-footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin: 0 0 12px;
}
.dwc-footer-col p, .dwc-footer-col a {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  display: block;
}
.dwc-footer-col a:hover { color: var(--dwc-orange); text-decoration: none; }
.dwc-footer-col img { height: 56px; opacity: 0.92; }
.dwc-footer-note {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

@media (max-width: 720px) {
  .dwc-footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--dwc-blue);
  color: #fff;
  padding: 11px 20px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--dwc-blue-dark); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }

.btn.cta {
  background: var(--dwc-orange);
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}
.btn.cta:hover { background: var(--dwc-orange-dark); }

.btn.ghost {
  background: transparent;
  color: var(--dwc-blue);
  border: 1px solid var(--dwc-blue);
}
.btn.ghost:hover { background: var(--dwc-blue-tint); color: var(--dwc-blue-dark); }

.btn.ghost-muted {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 13px;
}
.btn.ghost-muted:hover { color: var(--ink); border-color: var(--ink); background: var(--paper); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Condition chips */
.cond-chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #eef0f3;
  color: var(--muted);
  border: 1px solid transparent;
  vertical-align: middle;
  text-transform: capitalize;
}
.cond-chip.excellent  { background: #e3f3ea; color: var(--cond-excellent); border-color: #c4e3ce; }
.cond-chip.good       { background: #e9f1eb; color: var(--cond-good); border-color: #cfe1d3; }
.cond-chip.fair       { background: #fcf3df; color: var(--cond-fair); border-color: #ecd9a1; }
.cond-chip.poor       { background: #fbe5e0; color: var(--cond-poor); border-color: #ecbeb4; }
.cond-chip.attention  { background: #fbe5e0; color: var(--cond-attention); border-color: #ecbeb4; }
.cond-chip.damaged    { background: #fbe5e0; color: var(--cond-poor); border-color: #ecbeb4; }
.cond-chip.na, .cond-chip.notapplicable, .cond-chip-default { background: #eef0f3; color: var(--cond-na); }
.cond-chip.passed     { background: #e3f3ea; color: var(--cond-excellent); border-color: #c4e3ce; }
