/*
 * Serenity Recuperative Care LLC website styles
 *
 * This stylesheet defines the colour palette and layout rules for the
 * Serenity Recuperative Care website. The design uses a calm green
 * palette and plenty of white space to reflect the healing, soothing
 * environment of the service. All sections are kept concise and
 * accessible in accordance with Minnesota DHS recuperative care
 * guidance.
 */

/* Colour palette */
:root {
  --primary: #355e3b; /* deep forest green for headers and footer */
  --secondary: #628c66; /* medium green for hover states */
  --accent: #d6e8cf; /* soft pastel green for feature boxes */
  --background: #fdfcfb; /* off‑white background */
  --text: #333333; /* dark grey for body text */
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header & Navigation */
header {
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: #ffffff;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

nav a:hover,
nav a.active {
  background: var(--secondary);
}

/* Hero section */
.hero {
  background-image: url('images/abstract-bg1.png');
  background-size: cover;
  background-position: center;
  color: var(--primary);
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Generic section wrapper */
.section {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.section p {
  margin-bottom: 1rem;
}

/* Feature grid */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.feature {
  background: var(--accent);
  color: var(--primary);
  border-radius: 8px;
  flex: 1 1 280px;
  padding: 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.feature i {
  font-size: 1.5rem;
  margin-top: 0.2rem;
  color: var(--primary);
}

.feature h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

/* CTA button */
.cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--primary);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.cta:hover {
  background: var(--secondary);
}

/* Footer */
footer {
  background: var(--primary);
  color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
}

form .field {
  margin-bottom: 1rem;
}

form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: var(--primary);
}

form input,
form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
}

form textarea {
  min-height: 120px;
}

form button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

form button:hover {
  background: var(--secondary);
}

/* Responsive behaviour */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .features {
    flex-direction: column;
    align-items: stretch;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}