/* ===========================================================
   The House — Patient Journey landing page
   Palette: forest green / parchment cream / gold / terracotta
   =========================================================== */

:root {
  --forest:      #265ba5;
  --forest-dark: #265ba5;
  --cream:       #f4efdc;
  --cream-soft:  #faf6ea;
  --gold:        #80848a;
  --terracotta:  #b6532f;
  --ink:         #20241f;
  --ink-soft:    #4d5347;
  --border:      #e2d8b8;
  --shadow:      0 18px 40px rgba(20, 42, 29, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', 'Cambria', Georgia, serif;
  margin: 0;
  color: var(--forest-dark);
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: #fff;
  color: var(--cream-soft);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--cream-soft);
}

.brand-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.brand-mark img {
  width: 80px;
  height: 80px;
}

.nav-cta {
  background: var(--gold);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
}

.hero p.lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero .actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--forest);
  color: var(--cream-soft);
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}

/* ---------- Section: about / image showcase ---------- */
.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.showcase {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.showcase img { border-radius: 12px; }

.showcase-caption {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 14px;
}

/* ---------- Registration form ---------- */
.form-section {
  background: var(--forest);
  color: var(--cream-soft);
}

.form-wrap {
  max-width: 540px;
  margin: 0 auto;
  background: var(--cream-soft);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.form-wrap h2 { color: var(--forest-dark); text-align: center; }

.form-wrap .section-subtitle { color: var(--ink-soft); margin-bottom: 28px; }

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--forest-dark);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

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

.form-wrap button[type="submit"] {
  width: 100%;
  border: none;
  margin-top: 6px;
}

.alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.alert-success {
  background: #e4f3e6;
  color: #1f5c2d;
  border: 1px solid #bfe3c4;
}

.alert-error {
  background: #fbeae6;
  color: #963a1c;
  border: 1px solid #f1c4b6;
}

.error-text {
  color: var(--terracotta);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--forest-dark);
  color: #cdd6c9;
  text-align: center;
  padding: 26px 0;
  font-size: 0.85rem;
}

/* ---------- Dashboard / login ---------- */
.dash-header {
  background: #fff;
  color: var(--cream-soft);
  padding: 18px 0;
}

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

.dash-header .brand { color: var(--cream-soft); }

.logout-link {
  color: var(--cream-soft);
  background: var(--forest);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.dash-main { padding: 36px 0 60px; }

.dash-stats {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 26px;
  min-width: 160px;
}

.stat-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--forest-dark);
  font-weight: 700;
}

.stat-card .label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--forest);
  color: var(--cream-soft);
  text-align: left;
  padding: 14px 18px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover { background: var(--cream); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
}

.login-card {
  background: var(--cream-soft);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
}

.login-card h2 { text-align: center; margin-bottom: 6px; }
.login-card .section-subtitle { margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; }
  .dash-stats { flex-direction: column; }
}
