/* W4TWP RFP Portal — Brand Styles */

:root {
  --navy: #0F2A6A;
  --navy-dark: #0a1f4f;
  --navy-light: #1d3d8a;
  --gold: #B09837;
  --gold-light: #c9b256;
  --gold-pale: #f5efd9;
  --cream: #faf8f1;
  --black: #1a1a1a;
  --gray-700: #444;
  --gray-500: #777;
  --gray-300: #ccc;
  --gray-100: #eee;
  --gray-50: #f7f7f7;
  --red: #B22222;
  --green: #2e7d32;
  --shadow: 0 4px 16px rgba(15, 42, 106, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 42, 106, 0.15);
  --radius: 8px;
}

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

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: var(--black);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }

p { margin-bottom: 1rem; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

/* Header */
.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: white;
  letter-spacing: 0.5px;
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.demo-badge {
  background: var(--gold);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Gate page */
.gate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  padding: 2rem;
}

.gate-card {
  background: white;
  color: var(--black);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  text-align: center;
  border-top: 6px solid var(--gold);
}

.gate-card h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.gate-card .subtitle {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.gate-card p {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.code-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.code-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--navy);
  color: white;
}

.btn-primary:hover {
  background: var(--navy-light);
  color: white;
}

.btn-gold {
  background: var(--gold);
  color: white;
}

.btn-gold:hover {
  background: var(--gold-light);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
}

.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.hero h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
}

.hero-eyebrow {
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Tool cards (hub) */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.tool-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tool-card .tool-eyebrow {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tool-card h3 {
  margin-bottom: 0.75rem;
}

.tool-card p {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-card .btn {
  align-self: flex-start;
}

/* Section */
section.content-section {
  padding: 2.5rem 0;
}

section.content-section h2 {
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  background: white;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.help-text {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Steps / progress */
.step-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 1rem;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 600;
}

.step.active {
  color: var(--navy);
}

.step.complete {
  color: var(--gold);
}

.step::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
  margin: 0 auto 0.5rem;
}

.step.active::before {
  background: var(--navy);
  border-color: var(--navy);
}

.step.complete::before {
  background: var(--gold);
  border-color: var(--gold);
  content: "✓";
  color: white;
  line-height: 24px;
  font-size: 14px;
}

/* Card / panel */
.panel {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.panel-gold {
  border-left: 5px solid var(--gold);
  background: var(--gold-pale);
}

/* Anxiety scale */
.scale-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.scale-row:last-child { border-bottom: none; }

.scale-options {
  display: flex;
  gap: 0.5rem;
}

.scale-option {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.4rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  background: white;
  transition: all 0.15s;
}

.scale-option:hover {
  border-color: var(--gold);
}

.scale-option.selected {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* Severity colors for output */
.severity-mild { color: var(--green); }
.severity-moderate { color: var(--gold); }
.severity-severe { color: var(--red); font-weight: 700; }

/* Crisis banner */
.crisis-banner {
  background: var(--red);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-weight: 600;
  text-align: center;
  font-size: 1.05rem;
}

.crisis-banner a {
  color: white;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
  border-top: 4px solid var(--gold);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Action bar */
.action-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-100);
}

/* Output / results */
.result-card {
  background: linear-gradient(135deg, var(--gold-pale) 0%, white 100%);
  border-left: 5px solid var(--gold);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.result-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
}

.recommendation-list {
  list-style: none;
  padding: 0;
}

.recommendation-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}

.recommendation-list li::before {
  content: "▸";
  position: absolute;
  left: 0.5rem;
  color: var(--gold);
  font-weight: 700;
}

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

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hide { display: none !important; }

/* Fonts loaded from Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&display=swap');

/* Demo walkthrough styles */
.demo-banner {
  background: var(--gold-pale);
  border-left: 5px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.demo-banner strong { color: var(--navy); }

.demo-step {
  margin: 2rem 0;
}

.demo-step-label {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.demo-step h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--navy);
}

.preview-box {
  background: white;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
  position: relative;
}

.preview-box::before {
  content: "WHAT THE EMPLOYEE SEES";
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--gold);
  color: white;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.sample-input {
  background: var(--gray-50);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--navy);
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.sample-input .label {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.15rem;
}

.sample-input .value {
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
}

.sample-input.narrative .value {
  font-style: italic;
  color: var(--gray-700);
}

.sample-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sample-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .sample-grid-2, .sample-grid-3 { grid-template-columns: 1fr; }
}

.output-preview {
  background: linear-gradient(135deg, var(--gold-pale) 0%, white 100%);
  border-left: 5px solid var(--gold);
  padding: 1.75rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  position: relative;
}

.output-preview::before {
  content: "WHAT THE EMPLOYEE RECEIVES";
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--navy);
  color: white;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.metric-box {
  display: inline-block;
  background: white;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin: 0.25rem 0.5rem 0.25rem 0;
  text-align: center;
}

.metric-box .label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.metric-box .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Cormorant Garamond', serif;
}

.metric-box.flag {
  border-color: var(--red);
  background: #fff5f5;
}

.metric-box.flag .value {
  color: var(--red);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.feature-list li {
  padding: 0.65rem 0 0.65rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0.5rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

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

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .gate-card { padding: 2rem 1.5rem; }
  .panel { padding: 1.25rem; }
}
