/* YourSpace shared styles. Calm green palette, mobile first. */

:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --green-light: #E1F5EE;
  --green-border: #5DCAA5;
  --bg: #f4f6f9;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text-dark: #111111;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-soft: #4b5563;
  --crisis-bg: #FEF2F2;
  --crisis-border: #FECACA;
  --crisis-title: #991B1B;
  --crisis-text: #B91C1C;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
}

a { color: var(--green-dark); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Site header, used on every page */
.site-header {
  text-align: center;
  padding: 2.25rem 1.25rem 1.5rem;
}
.site-header a { text-decoration: none; }
.site-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
}
.site-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
}
.site-header h1 a { color: var(--text-dark); }
.site-header .tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections on the landing page */
section { padding: 1.5rem 0; }
section h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.about-section p {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}
.about-section p:last-child { margin-bottom: 0; }

/* Three clickable space cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.space-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.space-card:hover,
.space-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--green-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-light);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}
.space-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.space-card p { font-size: 14px; color: var(--text-muted); }
.card-arrow {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
}

/* Reviews and certifications placeholder */
.placeholder-box {
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: #fafafa;
}

/* Narrower content pages: about, privacy, terms */
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
}
.page-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 16px 0 8px;
}
.page-card h2:first-child { margin-top: 0; }
.page-card p, .page-card li {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-soft);
}
.page-card ul { padding-left: 18px; margin-top: 8px; }
.page-card li { margin-bottom: 8px; }
.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Footer, used on every page */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 2rem 1.25rem 2.5rem;
  border-top: 0.5px solid var(--border);
  background: #ffffff;
  margin-top: 2rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
}
.footer-links a { font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--green); }

.crisis-box {
  max-width: 460px;
  margin: 0 auto;
  background: var(--crisis-bg);
  border: 0.5px solid var(--crisis-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.crisis-box .crisis-title {
  font-weight: 600;
  color: var(--crisis-title);
  font-size: 13px;
  margin-bottom: 8px;
  text-align: center;
}
.crisis-box p {
  font-size: 12.5px;
  color: var(--crisis-text);
  margin: 4px 0;
  text-align: center;
}

@media (max-width: 480px) {
  .card, .space-card { padding: 1.25rem; }
}
