:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-alt: #f0f3fb;
  --text: #121828;
  --muted: #55607a;
  --primary: #1f3b84;
  --primary-strong: #152b66;
  --border: #dbe2f1;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 0% 0%, #eef2ff, var(--bg) 45%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  font-family: "Libre Baskerville", serif;
  line-height: 1.22;
  color: #0f1830;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(248, 249, 252, 0.9);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
}

.brand-logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(21, 43, 102, 0.15));
}

.logo-book {
  fill: #fff;
  stroke: var(--primary-strong);
  stroke-width: 3;
  stroke-linejoin: round;
}

.logo-spine {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
}

.logo-pages {
  fill: none;
  stroke: #2d4f9f;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.logo-accent {
  fill: var(--primary-strong);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-name {
  letter-spacing: 0.035em;
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f1830;
}

.brand-subheading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  padding: 4.2rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 2.4vw + 0.9rem, 3rem);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.hero-panel {
  background: linear-gradient(165deg, #1f3b84, #243f76 55%, #152856);
  color: #f3f7ff;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 14px 34px rgba(19, 36, 80, 0.28);
}

.hero-panel h2 {
  color: #f8fbff;
  font-size: 1.2rem;
}

.hero-panel ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.section {
  padding: 2.8rem 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.45rem, 2vw + 0.6rem, 2rem);
}

.section-subtitle {
  color: var(--muted);
  max-width: 68ch;
}

.roster-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.avatar {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #e6ecfb;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card ul,
.checklist {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.92rem;
}

.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: start;
}

.consult-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-row.two-col {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8eb;
  border-radius: 10px;
  padding: 0.63rem 0.7rem;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 59, 132, 0.2);
  border-color: var(--primary);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  padding: 0.64rem 1rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-outline {
  color: var(--primary);
  border-color: var(--primary);
  background: #fff;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}

.full-width {
  width: 100%;
}

.form-status {
  min-height: 1.1em;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status.success {
  color: #0d6b46;
}

.form-status.error {
  color: #972726;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .consult-grid,
  .roster-grid {
    grid-template-columns: 1fr;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-subheading {
    font-size: 0.66rem;
  }
}
