
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #292633;
  background: #f8f6f7;

  --ink: #292633;
  --muted: #716c78;
  --paper: #f8f6f7;
  --surface: #ffffff;
  --surface-soft: #f2eef4;
  --line: #e7e0e9;

  --plum: #70456f;
  --plum-dark: #513252;
  --lavender: #eee7f1;
  --teal: #39736e;
  --pink: #d77d9b;

  --shadow: 0 14px 40px rgba(54, 35, 59, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(215, 125, 155, 0.10), transparent 28rem),
    radial-gradient(circle at 5% 35%, rgba(112, 69, 111, 0.07), transparent 30rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: var(--plum);
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

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

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: 160ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(57, 115, 110, 0.35);
  outline-offset: 3px;
}

/* ---------------- NAVIGATION ---------------- */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(250, 248, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1120px, 100%);
  min-height: 76px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: fit-content;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -1px;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 9px;
  color: #625b69;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--lavender);
  color: var(--plum-dark);
}

/* ---------------- GENERAL LAYOUT ---------------- */

.page-shell {
  width: min(1100px, 100%);
  margin: auto;
  padding: 48px 24px 76px;
}

.page-heading {
  margin-bottom: 30px;
}

.page-heading h1,
.page-title {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

/* ---------------- HOME HERO ---------------- */

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(130deg, #ffffff 35%, #f1eaf3 100%);
  box-shadow: var(--shadow);
}

.hero-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    #d96d83,
    #e4a66b,
    #d9c36b,
    #6eaa83,
    #6898c4,
    #8769a9
  );
  content: "";
}

.hero-card h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  color: var(--plum-dark);
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -2.5px;
}

.hero-card p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-primary {
  background: var(--plum);
  color: white;
}

.button-primary:hover {
  background: var(--plum-dark);
  color: white;
}

.button-secondary {
  border-color: #d9cddd;
  background: white;
  color: var(--plum-dark);
}

.button-secondary:hover {
  border-color: var(--teal);
  background: #f2f8f6;
  color: var(--teal);
}

/* ---------------- HOME CONTENT ---------------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 56px;
}

.info-card,
.content-card,
.principle-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 5px 20px rgba(54, 35, 59, 0.035);
}

.info-card h2,
.content-card h2,
.principle-card h3 {
  margin-top: 0;
  color: var(--plum-dark);
}

.info-card p,
.content-card p,
.principle-card p {
  margin-bottom: 0;
  color: var(--muted);
}

/* ---------------- FORMS ---------------- */

.form-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin-top: 0;
  color: var(--plum-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 650;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #dcd4df;
  border-radius: 9px;
  background: #fcfbfc;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--plum);
  outline: none;
  box-shadow: 0 0 0 3px rgba(112, 69, 111, 0.12);
}

.field-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

#userForm button {
  margin-top: 18px;
}

/* ---------------- ABOUT PAGE ---------------- */

.content-section {
  margin: 42px 0;
}

.content-section > h2 {
  margin-bottom: 16px;
  color: var(--plum-dark);
  font-size: 1.8rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ---------------- SURVEY ---------------- */

.page-survey .page-shell {
  max-width: 1000px;
}

.page-survey #surveyForm {
  width: 100%;
  margin: 24px auto;
  padding: clamp(16px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.page-survey .section {
  margin: 22px 0;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfbfc;
  scroll-margin-top: 110px;
}

.page-survey .section h2 {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--plum);
  font-size: 1.12rem;
}

.page-survey .section p {
  margin: 18px 0 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.page-survey .textInput,
.page-survey .section textarea,
.page-survey .section select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 7px 0 12px;
  padding: 11px 12px;
  border: 1px solid #dcd4df;
  border-radius: 9px;
  background: white;
  color: var(--ink);
}

.page-survey .section textarea {
  min-height: 110px;
  resize: vertical;
}

.page-survey .option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 5px 4px 0;
  padding: 7px 11px;
  border: 1px solid #e8e1eb;
  border-radius: 9px;
  background: white;
  color: #514a58;
  font-size: 0.88rem;
  cursor: pointer;
}

.page-survey .option:hover {
  border-color: #c5b2cb;
  background: var(--lavender);
}

.page-survey input[type="radio"],
.page-survey input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--plum);
}

.survey-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.survey-tools label {
  font-weight: 650;
}

.survey-tools select {
  min-width: min(100%, 280px);
  padding: 10px;
  border: 1px solid #dcd4df;
  border-radius: 9px;
  background: white;
}

.survey-tools p {
  flex: 1 1 250px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-survey #surveyForm > button {
  margin-top: 12px;
  background: var(--plum);
  color: white;
}

/* ---------------- STAFF / ADMIN ---------------- */

.auth-card,
.admin-card {
  max-width: 540px;
  margin: 30px auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.auth-card h1,
.admin-card h1 {
  margin-top: 0;
  color: var(--plum-dark);
}

.auth-card button {
  width: 100%;
  margin-top: 15px;
}

.admin-card {
  max-width: 850px;
}

.admin-card #staffEmail {
  padding: 12px;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--plum-dark);
}

.admin-card #logoutButton {
  background: var(--plum);
  color: white;
}

/* ---------------- FOOTER ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  width: min(1100px, 100%);
  margin: auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner p {
  margin: 0;
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 720px) {
  .header-inner {
    justify-content: center;
    gap: 12px;
  }

  .brand {
    width: 100%;
    align-items: center;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  .highlights,
  .content-grid,
  .approach-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 30px 16px 52px;
  }

  .hero-card h1 {
    letter-spacing: -1.5px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
