/* ─── SUST 2450: Creating Sustainable Futures ───────────────────────────────
   Palette:
     --moss:    #3B5E3A  (deep forest green, headings & nav)
     --sage:    #7A9E7E  (mid green, accents)
     --sprout:  #B8D4B0  (light green, hover states)
     --soil:    #5C4A2A  (warm brown, secondary text)
     --paper:   #F5F2EC  (off-white, page background)
     --white:   #FFFFFF
     --shadow:  rgba(59,94,58,0.12)

   Type:
     Display — 'Playfair Display' (serif, used sparingly for headings)
     Body    — 'Inter' (clean sans, all body/UI text)
──────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --moss:    #3B5E3A;
  --sage:    #7A9E7E;
  --sprout:  #B8D4B0;
  --soil:    #5C4A2A;
  --paper:   #F5F2EC;
  --white:   #FFFFFF;
  --shadow:  rgba(59,94,58,0.12);
  --radius:  10px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: #2a2a2a;
  min-height: 100vh;
}

/* ── Site header ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--moss);
  color: var(--white);
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
}

.site-header .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sprout);
  margin-bottom: 0.45rem;
}

.site-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.site-header .tagline {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--sprout);
  opacity: 0.85;
}

/* ── Main content wrapper ────────────────────────────────────────────────── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--moss);
  color: var(--white);
}
.btn-primary:hover { background: #2d4a2c; transform: translateY(-1px); }

.btn-secondary {
  background: var(--white);
  color: var(--moss);
  border: 2px solid var(--moss);
}
.btn-secondary:hover { background: var(--sprout); }

/* ── Form card ───────────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 24px var(--shadow);
  padding: 2.4rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--moss);
  margin-bottom: 0.3rem;
}

.form-card .form-intro {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--moss);
  margin-bottom: 0.4rem;
}

.field .hint {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 0.4rem;
  display: block;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: var(--paper);
  color: #2a2a2a;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sprout);
}

.field textarea { resize: vertical; min-height: 80px; }

/* Photo upload */
.photo-upload-area {
  border: 2px dashed var(--sage);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s;
  background: var(--paper);
}
.photo-upload-area:hover { background: #edf4ec; }
.photo-upload-area input[type="file"] { display: none; }
.photo-upload-area .upload-icon { font-size: 2rem; margin-bottom: 0.4rem; }
.photo-upload-area p { font-size: 0.85rem; color: #666; }
.photo-upload-area p strong { color: var(--moss); }

#photo-preview {
  display: none;
  margin-top: 1rem;
  text-align: center;
}
#photo-preview img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--sage);
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Success / error messages ────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.alert-success { background: #e6f4e6; color: #245224; border-left: 4px solid var(--moss); }
.alert-error   { background: #fdecea; color: #7a1f1f; border-left: 4px solid #c0392b; }

/* ── Profile gallery grid ────────────────────────────────────────────────── */
.gallery-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}
.gallery-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--moss);
  margin-bottom: 0.4rem;
}
.gallery-intro p { color: #666; font-size: 0.95rem; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.profile-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 3px 16px var(--shadow);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(59,94,58,0.18);
}

.profile-card .card-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--sprout);
}

.profile-card .card-photo-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--sprout), var(--sage));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--white);
}

.profile-card .card-body {
  padding: 1.2rem 1.2rem 1.4rem;
}

.profile-card .card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--moss);
  margin-bottom: 0.2rem;
}

.profile-card .card-meta {
  font-size: 0.8rem;
  color: var(--soil);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.profile-card .card-detail {
  margin-bottom: 0.55rem;
}

.profile-card .card-detail .label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  display: block;
  margin-bottom: 0.12rem;
}

.profile-card .card-detail p {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #888;
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: 0.95rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid #e8e4dc;
  margin-top: 3rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-card { padding: 1.5rem 1rem; }
  .form-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
