/* Main styles for Care Home Marketing Website */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #198754;
  --tertiary-color: #0dcaf0;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.hero-section {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  color: white;
}

.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
}

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

.card-header {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: 8px 8px 0 0 !important;
}

.card-img-top {
  border-radius: 8px 8px 0 0;
  height: 200px;
  object-fit: cover;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
}

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success:hover {
  background-color: #157347;
  border-color: #157347;
}

.btn-info {
  background-color: var(--tertiary-color);
  border-color: var(--tertiary-color);
  color: white;
}

.btn-info:hover {
  background-color: #0bacca;
  border-color: #0bacca;
  color: white;
}

.section-title {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

.feature-box {
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.strategy-rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rating-label {
  width: 120px;
  font-weight: 600;
}

.rating-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  flex-grow: 1;
  overflow: hidden;
}

.rating-value {
  height: 100%;
  border-radius: 5px;
}

.rating-ease {
  background-color: var(--success-color);
}

.rating-time {
  background-color: var(--warning-color);
}

.rating-cost {
  background-color: var(--danger-color);
}

.rating-impact {
  background-color: var(--primary-color);
}

.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer h5 {
  color: white;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

/* Resource page specific styles */
.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card .card-body {
  flex-grow: 1;
}

.resource-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.download-btn {
  margin-top: auto;
}

.format-options {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.format-options a {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 4px;
  text-decoration: none;
  background-color: #e9ecef;
  color: #495057;
  transition: all 0.3s ease;
}

.format-options a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Case studies specific styles */
.filter-controls {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.case-study-card {
  height: 100%;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.case-study-tag {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  background-color: #e9ecef;
  color: #495057;
}

/* Implementation planning specific styles */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: -2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid white;
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .feature-box {
    padding: 1.5rem;
  }
}
