/* Birchester Care - Main Stylesheet */

:root {
  --primary-color: #5a5ae3;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link.active {
  font-weight: 600;
  color: var(--primary-color) !important;
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #4a4ad3;
  border-color: #3a3ac3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Cards */
.card {
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
}

/* Forms */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 1px solid #ced4da;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(90, 90, 227, 0.25);
}

/* Tables */
.table {
  font-size: 0.95rem;
}

.table th {
  font-weight: 600;
  background-color: var(--light-color);
}

/* Footer */
footer {
  border-top: 1px solid #dee2e6;
}

footer a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Hero sections */
.bg-light {
  background-color: #f8f9fa !important;
}

/* Hero Section Styling */
.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  overflow: visible;
  padding: 0;
  margin: 0;
}

@media (max-width: 1200px) {
  .hero-section {
    min-height: auto;
    padding: 0;
    align-items: flex-start;
  }
}

@media (max-width: 992px) {
  .hero-section {
    overflow: visible;
    padding: 0;
  }
}

.hero-background {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  background-size: cover;
  background-position: center;
  padding: 3rem 0;
}

@media (max-width: 1200px) {
  .hero-background {
    padding: 2.5rem 0;
  }
}

@media (max-width: 992px) {
  .hero-background {
    padding: 2rem 0;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(90, 90, 227, 0.1) 0%, rgba(90, 90, 227, 0.05) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
  min-height: auto;
}

.min-vh-75 {
  min-height: auto;
  padding: 0;
  align-items: flex-start;
}

@media (max-width: 1200px) {
  .min-vh-75 {
    min-height: auto;
    padding: 0;
  }
}

@media (max-width: 992px) {
  .min-vh-75 {
    padding: 0;
  }
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-title-main {
  display: block;
  color: #2c3e50;
}

.hero-title-highlight {
  display: block;
  background: linear-gradient(135deg, var(--primary-color), #4a4ad3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

.hero-trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .hero-trust-indicators {
    margin-bottom: 2rem;
    gap: 0.75rem;
  }
}

.trust-badge {
  background: linear-gradient(135deg, rgba(90, 90, 227, 0.1), rgba(90, 90, 227, 0.05));
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(90, 90, 227, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.trust-badge:hover {
  background: linear-gradient(135deg, rgba(90, 90, 227, 0.15), rgba(90, 90, 227, 0.1));
  border-color: rgba(90, 90, 227, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 90, 227, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .hero-actions {
    margin-bottom: 1.5rem;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #4a4ad3);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(90, 90, 227, 0.3);
  transition: all 0.3s ease;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 90, 227, 0.4);
}

.hero-btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #495057;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.contact-item i {
  font-size: 1.1rem;
}

.hero-image-container {
  animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image-container .carousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .hero-image {
    height: 280px;
  }
}

@media (max-width: 992px) {
  .hero-image {
    height: 250px;
  }
}

.hero-image-container .carousel-control-prev,
.hero-image-container .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-image-container:hover .carousel-control-prev,
.hero-image-container:hover .carousel-control-next {
  opacity: 1;
}

.hero-image-container .carousel-control-prev {
  left: 15px;
}

.hero-image-container .carousel-control-next {
  right: 15px;
}

.hero-image-container .carousel-control-prev-icon,
.hero-image-container .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #6c757d;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.scroll-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-trust-indicators {
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .hero-contact {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-image {
    height: 250px;
  }

  .min-vh-75 {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-text {
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-trust-indicators {
    margin-bottom: 1.5rem;
  }
  
  .trust-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .hero-actions {
    margin-bottom: 1.5rem;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Individual Home Page Enhancements */
.home-intro {
  background: linear-gradient(135deg, rgba(90, 90, 227, 0.05), rgba(90, 90, 227, 0.02));
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid var(--primary-color);
}

.feature-highlight {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature-highlight:hover {
  transform: translateY(-5px);
}

.philosophy-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-5px);
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  margin-bottom: 1rem;
}

.facility-item {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.facility-item:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.life-section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  height: 100%;
}

.life-section h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.staff-highlight {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.staff-highlight:hover {
  transform: translateY(-5px);
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  height: 100%;
  position: relative;
}

.testimonial-content {
  text-align: center;
}

.testimonial-author {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--primary-color);
}

/* Call-out boxes */
.callout-box {
  background: linear-gradient(135deg, var(--primary-color), #4a4ad3);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  text-align: center;
}

.callout-box h4 {
  color: white;
  margin-bottom: 1rem;
}

/* Statistics boxes */
.stats-box {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  border-top: 4px solid var(--primary-color);
}

.stats-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
}

.stats-label {
  color: #6c757d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact info styling */
.contact-info {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
}

.contact-info h5 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-intro {
    padding: 1.5rem;
  }
  
  .philosophy-card,
  .service-card,
  .staff-highlight,
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .life-section {
    padding: 1.5rem;
  }
  
  .feature-highlight {
    padding: 1rem;
  }
}

/* Utility classes */
.text-muted {
  color: var(--secondary-color) !important;
}

/* Enhanced Home Cards */
.home-card {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.home-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image-container {
  position: relative;
  overflow: hidden;
}

.card-image-container img {
  transition: transform 0.3s ease;
  height: 250px;
  object-fit: cover;
}

.home-card:hover .card-image-container img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(90, 90, 227, 0.8), rgba(90, 90, 227, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.home-card:hover .card-overlay {
  opacity: 1;
}

.capacity-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.cqc-rating {
  text-align: right;
  line-height: 1.2;
}

.cqc-rating i {
  font-size: 1.2rem;
}

/* Care Type Badges */
.care-badge-residential-care {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.care-badge-nursing-care {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.care-badge-dementia-care {
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
  color: white;
}

.care-badge-respite-care {
  background: linear-gradient(135deg, #fd7e14, #e55a00);
  color: white;
}

.badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 15px;
  font-weight: 500;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.feature-list i {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Enhanced Buttons */
.btn {
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #4a4ad3);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4a4ad3, #3a3ac3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(90, 90, 227, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* CQC Widgets Styling */
.cqc-widget-container {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.cqc-widget-container:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cqc-widget {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CQC Widget Responsive */
@media (max-width: 768px) {
  .cqc-widget-container {
    margin-bottom: 1rem;
  }
  
  .cqc-widget {
    min-height: 100px;
  }
  
  .home-card:hover {
    transform: none;
  }
  
  .card-image-container img {
    height: 200px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: none;
    color: black;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .display-5 {
    font-size: 2rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}


