/* =====================================
   Perth Cares — Light & Calm Theme
   ===================================== */

:root {
  --bg: #eaf6fb;         /* page background: very light blue */
  --surface: #ffffff;    /* card & section background */
  --surface-2: #f7fbfd;  /* subtle off-white for contrast */
  --border: #c8e0eb;     /* soft border */
  --text: #2a2a2a;       /* main text: dark gray for readability */
  --muted: #5c6f7b;      /* muted gray */
  --accent: #4da3ff;     /* primary blue */
  --accent-2: #2f73d9;   /* darker blue for hover */
  --ok: #4caf50;         /* success green */
  --warn: #ffb74d;       /* amber */
  --danger: #e57373;     /* soft red */

  --shadow-sm: 0 4px 12px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);

  --r-md: 10px;
  --r-lg: 16px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Header & Nav */
header, nav, main, footer {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 16px;
}
nav {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav a {
  text-decoration: none;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: background 0.2s;
}
nav a:hover {
  background: var(--accent);
  color: #fff;
}

/* Headings */
h1, h2, h3 {
  margin: 0 0 12px;
  font-weight: 600;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; color: var(--accent-2); }
h3 { font-size: 1.2rem; }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card .p {
  padding: 16px;
}

/* Buttons */
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--accent-2);
}
.btn-secondary {
  background: var(--surface);
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}
.btn-secondary:hover {
  background: var(--accent-2);
  color: #fff;
}

/* Forms */
label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}
.input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
}
.input:focus, select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

/* Progress bar */
.progress {
  height: 12px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress > div {
  height: 100%;
  width: 0%;
  background: var(--ok);
  transition: width 0.4s ease;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
