/* Westfield Publishing — Site Stylesheet */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}

a { color: #1a5fa8; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  background: #0d2b52;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo-mark {
  display: inline-block;
  background: #1a5fa8;
  color: #fff;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 4px;
  margin-right: 8px;
  font-weight: 700;
}
nav a {
  color: rgba(255,255,255,0.8);
  margin-left: 28px;
  font-size: 0.9rem;
}
nav a:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d2b52 0%, #1a5fa8 100%);
  color: #fff;
  padding: 80px 0;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
  margin-bottom: 32px;
}
.btn {
  display: inline-block;
  background: #fff;
  color: #0d2b52;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { background: #e8f0fe; text-decoration: none; }

/* Page hero */
.page-hero {
  background: #0d2b52;
  color: #fff;
  padding: 48px 0;
}
.page-hero h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 8px; }
.page-hero p { opacity: 0.8; font-size: 1rem; }

/* Features */
.features {
  padding: 64px 0;
  background: #f8f9fb;
}
.features .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 28px;
}
.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: #0d2b52; }
.feature p { font-size: 0.9rem; color: #555; }

/* Brands preview */
.brands-preview { padding: 64px 0; text-align: center; }
.brands-preview h2 { font-size: 1.5rem; margin-bottom: 16px; }
.brands-preview p { color: #555; max-width: 560px; margin: 0 auto; }

/* Content pages */
.content { padding: 60px 0; }
.content-block { margin-bottom: 48px; }
.content-block h2 { font-size: 1.3rem; margin-bottom: 14px; color: #0d2b52; }
.content-block p { color: #444; margin-bottom: 12px; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.team-member {
  background: #f8f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
}
.team-member h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.team-member p { font-size: 0.85rem; color: #666; }

/* Brands grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.brand-card {
  background: #f8f9fb;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1a5fa8;
  border-radius: 4px;
  padding: 24px;
}
.brand-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #0d2b52; }
.brand-card p { font-size: 0.88rem; color: #555; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.contact-block h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #0d2b52; }
.contact-block p { font-size: 0.9rem; color: #444; line-height: 1.7; }

/* Footer */
footer {
  background: #0d2b52;
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
  margin-top: 64px;
  font-size: 0.85rem;
}
footer .container { display: flex; justify-content: space-between; align-items: center; }
footer a { color: rgba(255,255,255,0.6); }
footer a:hover { color: #fff; }

/* Diagnostic page */
.diagnostic {
  background: #0a0a0a;
  color: #d4d4d4;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  min-height: 100vh;
  padding: 32px;
}
.diagnostic .diag-header {
  border-bottom: 1px solid #333;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.diagnostic h1 { color: #e2e2e2; font-size: 1rem; font-weight: 500; }
.diagnostic .error-block {
  background: #1a0000;
  border: 1px solid #5a0000;
  border-left: 4px solid #cc2222;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
}
.diagnostic .error-block .error-title { color: #ff6b6b; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.diagnostic .error-block .error-detail { color: #cc9999; font-size: 0.82rem; line-height: 1.8; }
.diagnostic .headers-block { margin-bottom: 24px; }
.diagnostic .headers-block h2 { color: #888; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.diagnostic .header-row { display: flex; font-size: 0.82rem; margin-bottom: 4px; }
.diagnostic .header-name { color: #7ab3e0; width: 220px; flex-shrink: 0; }
.diagnostic .header-value { color: #a8c7a8; }
.diagnostic .download-section {
  background: #0f1a0f;
  border: 1px solid #1e3a1e;
  border-left: 4px solid #3a8a3a;
  padding: 20px;
  border-radius: 4px;
  margin-top: 8px;
}
.diagnostic .download-section h2 { color: #7ab87a; font-size: 0.85rem; margin-bottom: 8px; }
.diagnostic .download-section p { color: #7a9a7a; font-size: 0.8rem; margin-bottom: 14px; line-height: 1.7; }
.diagnostic .download-btn {
  display: inline-block;
  background: #2a6a2a;
  color: #b8e8b8;
  padding: 9px 20px;
  border-radius: 3px;
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid #3a8a3a;
}
.diagnostic .download-btn:hover { background: #336633; text-decoration: none; }
.diagnostic .instructions { margin-top: 14px; color: #667a66; font-size: 0.78rem; line-height: 1.9; }
.diagnostic .instructions code { color: #a8d8a8; }
