/* --- Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: #f8f6f3; /* warm neutral */
  color: #2f2f2f;
}

/* --- Header --- */
header .header-top {
  background: #255736; /* main logo color */
  height: 6px;
}

header .header-middle {
  background: #ece8e3;
  padding: 6px 20px;
  text-align: center;
  font-size: 0.9em;
  color: #3b3b3b;
  border-bottom: 1px solid #d8d4cd;
}

header .header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 15px 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- Logo Styling --- */
header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

header .logo img {
  height: 100px;
  width: auto;
  margin-right: 12px;
}

header .logo span {
  font-size: 1.6em;
  font-weight: bold;
  color: #255736; /* brand color */
  white-space: nowrap;
}

/* --- Navigation --- */
.main-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #3b3b3b;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #4b7c59; /* soft earthy green */
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
  background: url('../images/creek_1.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 0;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: -1;
  border-radius: 8px;
}

main {
  padding: 20px 0;
}

/* --- Headings --- */
.intro h1,
.home-content h2,
.home-news h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #255736;
}

/* --- Section Spacing --- */
.intro,
.home-content,
.home-news {
  margin-bottom: 40px;
}

/* --- News Slider --- */
.news-slider {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f3f1ed url('../images/default-slider.jpg') center/cover no-repeat;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background-image 0.8s ease-in-out;
}

.news-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(37, 87, 54, 0.55); /* dark overlay tint for readability */
  z-index: 0;
  border-radius: 6px;
}

.news-slider > * {
  position: relative;
  z-index: 1;
  color: #fff;
}

.news-slide {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
  padding: 10px 15px 35px;
}

.news-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.news-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.news-dots button {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background-color: #d6b98c; /* warm tan */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.news-dots button:hover {
  background-color: #a37e4b;
  transform: scale(1.1);
}

.news-dots button.active {
  background-color: #fff;
}

/* --- News Content --- */
.news-slide h3 {
  margin-bottom: 8px;
  font-size: 1.25em;
  color: #fff;
}

.news-slide p {
  font-size: 0.95em;
  color: #f5f3ee;
  margin-bottom: 10px;
}

.news-slide a {
  font-size: 0.9em;
  color: #fff;
  background: #255736;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.news-slide a:hover {
  background: #3c8554;
}

/* --- Buttons --- */
button,
.btn {
  display: inline-block;
  background: #255736;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

button:hover,
.btn:hover {
  background: #3c8554;
}

/* --- Footer --- */
footer {
  background: #255736;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  color: #fff;
  margin-top: 30px;
  border-top: 1px solid #3a7a52;
}

/* --- Responsive --- */
@media(max-width: 768px) {
  header .header-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    margin-top: 10px;
  }
  .main-nav a {
    margin: 5px 0;
  }
}

/* --- Services --- */
.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.service_family,
.service_mental {
  flex: 1;
  min-width: 45%;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #255736;
}

.service_mental {
  border-top-color: #4b7c59;
}

.service_family h2,
.service_mental h2 {
  font-size: 1.4em;
  color: #255736;
  margin-bottom: 12px;
  border-bottom: 2px solid #d6b98c;
  padding-bottom: 5px;
  text-align: left;
}

.service_family h2::before {
  content: "👨‍👩‍👧‍👦 ";
}

.service_mental h2::before {
  content: "🧠 ";
}

.service-desc {
  color: #4b4b4b;
  font-size: 0.95em;
}

/* --- Hours of Operation --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.hours-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}

.hours-table tr:nth-child(even) {
  background: #f5f3ee;
}

.hours-table tr.today-row {
  background: #e8f2eb;
  font-weight: bold;
}

.hours-table tr.today-row td {
  color: #255736;
}

/* Current Week Notice */
.current-week-notice {
  background: #e8f2eb;
  border: 1px solid #c7e0cf;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 1.05em;
  text-align: center;
  color: #255736;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* --- About Page --- */
.about-page h1, .about-page h2 {
  color: #255736;
  margin-bottom: 15px;
}

.about-facility {
  margin-bottom: 50px;
}

.about-facility p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.staff-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.2s ease-in-out;
}

.staff-card:hover {
  transform: translateY(-4px);
}


/* ===== ABOUT PAGE (updated to earthy theme + responsive grid) ===== */
:root {
  --primary: #255736; /* ensure this is defined in your stylesheet root */
  --muted-text: #555;
  --card-bg: #ffffff;
}

.about-page h1,
.about-page h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

/* Facility block */
.about-facility {
  margin-bottom: 50px;
}
.about-facility p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

/* Responsive staff grid using CSS Grid */
.about-staff .staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
}

/* Staff card (flex column inside but grid handles sizing) */
.staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 18px;
  transition: transform 0.18s ease-in-out, box-shadow 0.18s;
  max-width: 100%;
}

/* Hover lift */
.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Image */
.staff-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 4px solid rgba(37,87,54,0.06); /* subtle ring */
}

/* Text */
.staff-info {
  text-align: center;
  width: 100%;
}
.staff-info h3 {
  margin: 6px 0;
  font-size: 1.05rem;
  color: var(--primary);
}
.staff-title {
  font-weight: 600;
  color: var(--muted-text);
  margin-bottom: 10px;
}
.staff-bio {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  text-align: left;
}

/* Small screen tweaks */
@media (max-width: 768px) {
  .about-staff .staff-grid {
    gap: 18px;
  }
  .staff-image img {
    width: 110px;
    height: 110px;
  }
  .staff-bio {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .about-staff .staff-grid {
    grid-template-columns: 1fr;
  }
  .staff-card {
    padding: 16px;
  }
  .staff-image img {
    width: 100px;
    height: 100px;
  }
}


/* --- Insurance --- */
.insurance-wrapper {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
}

.insurance-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.insurance-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
}

.insurance-list li:last-child {
  border-bottom: none;
}

.insurance-list strong {
  font-size: 1.1em;
  color: #255736;
}

.insurance-notes {
  color: #555;
  font-size: 0.9em;
}

/* --- Responsive Staff Grid --- */
@media (max-width: 768px) {
  .services-wrapper {
    flex-direction: column;
  }
}

