/* EcpPro placeholder stylesheet — colour is here purely to prove the CSS is loading. */

:root {
  --brand:        #0b6e99;
  --brand-dark:   #084d6b;
  --accent:       #f5a524;
  --bg:           #f6f8fa;
  --surface:      #ffffff;
  --text:         #1c2530;
  --text-muted:   #5b6b7c;
  --border:       #dfe5ec;
  --shadow:       0 1px 3px rgba(16, 32, 48, .09), 0 6px 18px rgba(16, 32, 48, .05);
  --radius:       10px;
  --maxw:         960px;
}

[data-theme="dark"] {
  --brand:        #4bb3dd;
  --brand-dark:   #2b90ba;
  --accent:       #ffbf47;
  --bg:           #10161d;
  --surface:      #18202a;
  --text:         #e6edf3;
  --text-muted:   #9bacbd;
  --border:       #2a3542;
  --shadow:       0 1px 3px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
  background: linear-gradient(100deg, var(--brand-dark), var(--brand));
  box-shadow: var(--shadow);
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
}
.brand span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: .35rem; }

.site-nav a {
  padding: .4rem .8rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover   { background: rgba(255, 255, 255, .15); color: #fff; }
.site-nav a.active  { background: rgba(255, 255, 255, .22); color: #fff; }

.theme-toggle {
  margin-left: .5rem;
  padding: .35rem .6rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius);
}
.theme-toggle:hover { background: rgba(255, 255, 255, .28); }

/* ---------- layout ---------- */

main { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem 3rem; }

.hero { padding: 1.5rem 0 .5rem; }
.hero h1 { margin: 0 0 .5rem; font-size: 2.1rem; letter-spacing: -.02em; }
.lede { margin: 0 0 1.25rem; font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; }

.panel {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 .5rem; font-size: 1.25rem; }

.muted { color: var(--text-muted); }

code {
  padding: .1rem .35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: .9em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: .6rem 1.15rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover  { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-small  { padding: .3rem .7rem; font-size: .9rem; }

/* ---------- lists, cards ---------- */

.checks { margin: 0; padding-left: 1.2rem; }
.checks li { margin: .45rem 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.card h3 { margin: 0 0 .35rem; font-size: 1.02rem; color: var(--brand); }
.card p  { margin: 0; font-size: .93rem; color: var(--text-muted); }

.contact-list { margin: 0; }
.contact-list dt { font-weight: 600; color: var(--brand); margin-top: .65rem; }
.contact-list dd { margin: .15rem 0 0; color: var(--text-muted); }

/* ---------- form ---------- */

.demo-form { display: grid; gap: .35rem; max-width: 380px; margin-top: 1rem; }
.demo-form label { font-weight: 600; font-size: .9rem; }
.demo-form input {
  padding: .55rem .7rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}
.demo-form input:focus  { outline: 2px solid var(--brand); outline-offset: 1px; }
.demo-form input.invalid { border-color: #d93025; }
.demo-form .btn { margin-top: .6rem; justify-self: start; }

.form-result { min-height: 1.4rem; font-weight: 600; }
.form-result.ok    { color: #1a7f37; }
.form-result.error { color: #d93025; }

/* ---------- footer ---------- */

.site-footer {
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted);
}
.site-footer p { margin: .2rem 0; }

@media (max-width: 560px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 1.7rem; }
}
