/**
 * Custom styles for Chestelm Health & Rehabilitation Center website
 */

/* ===== Variables ===== */
:root {
  --primary-color: #8cc63f; /* Green */
  --primary-dark: #72a230;
  --secondary-color: #0071bc; /* Blue */
  --secondary-dark: #005a96;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --footer-background: #eeeeee;
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Open Sans", sans-serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --border-radius: 0.25rem;
}

/* ===== Base Styles ===== */
body {
  font-family: var(--font-secondary);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-dark);
  text-decoration: underline;
}

.btn {
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

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

.btn-success:hover,
.btn-success:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ===== Header Styles ===== */
.site-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  max-height: 80px;
}

.address {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.contact-info {
  font-size: 1rem;
}

.social-icon {
  color: var(--secondary-color);
  margin-left: 0.5rem;
}

.social-icon:hover {
  color: var(--secondary-dark);
}

.rating-criteria {
  font-size: 0.8rem;
  text-decoration: underline;
}

/* ===== Navigation Styles ===== */
.navbar {
  padding: 0;
  background-color: var(--primary-color) !important;
}

.navbar-light .navbar-nav .nav-link {
  color: white;
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 1rem 1.5rem;
  transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link.active {
  background-color: var(--primary-dark);
  color: white;
}

.navbar-light .navbar-toggler {
  border-color: white;
  margin: 0.5rem;
}

.dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: var(--box-shadow);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  font-family: var(--font-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--light-gray);
  color: var(--secondary-color);
}

/* ===== Hero Section ===== */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 5rem 0;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* ===== Mission Section ===== */
.mission-section {
  padding: 4rem 0;
  background-color: var(--light-color);
}

.mission-title {
  color: var(--secondary-color);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.mission-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* ===== Services Section ===== */
.services-section {
  padding: 4rem 0;
}

.service-card {
  margin-bottom: 2rem;
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.service-image {
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 4rem 0;
  background-color: var(--light-color);
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary-color);
}

/* ===== Awards Section ===== */
.awards-section {
  background-color: var(--light-gray);
}

.award-item img {
  max-height: 80px;
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: var(--footer-background);
  color: white;
}
.site-footer a,
h4 {
  color: white;
}

.footer-main {
  background-color: var(--secondary-color);
}

.footer-main h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-main h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-bottom {
  background-color: var(--dark-color);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--light-gray);
}

.footer-bottom a:hover {
  color: white;
}

.fb-profile {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* ===== Accessibility Button ===== */
.accessibility-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}

.accessibility-button .btn {
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 1000;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-content p {
  margin-bottom: 1rem;
  flex: 1 0 100%;
}

@media (min-width: 768px) {
  .cookie-content p {
    margin-bottom: 0;
    flex: 1;
  }
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .site-header .row {
    text-align: center;
  }

  .contact-info,
  .ratings {
    text-align: center;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .mission-title,
  .footer-main h3 {
    display: block;
    text-align: center;
  }

  .mission-title::after,
  .footer-main h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }
}

/* ===== Page-Specific Styles ===== */

/* Contact Page */
.contact-page .contact-info-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
/* Open dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.contact-page .contact-form {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

/* Gallery Page */
.gallery-page .gallery-item {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.gallery-page .gallery-item img {
  transition: var(--transition);
}

.gallery-page .gallery-item:hover img {
  transform: scale(1.05);
}

/* Testimonials Page */
.testimonials-page .testimonial-card {
  margin-bottom: 2rem;
}

/* High Contrast Mode */
body.high-contrast {
  background-color: black;
  color: white;
}

body.high-contrast .site-header,
body.high-contrast .navbar,
body.high-contrast .dropdown-menu,
body.high-contrast .service-card,
body.high-contrast .testimonial-card,
body.high-contrast .contact-form,
body.high-contrast .contact-info-card {
  background-color: black;
  color: white;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast a,
body.high-contrast .navbar-light .navbar-nav .nav-link {
  color: yellow;
}

body.high-contrast .btn-primary,
body.high-contrast .btn-success {
  background-color: yellow;
  border-color: yellow;
  color: black;
}

/* Inverted Colors Mode */
body.inverted-colors {
  filter: invert(100%);
}

body.inverted-colors img {
  filter: invert(100%);
}

/* Font Size Adjustments */
body.font-size-large {
  font-size: 1.2rem;
}

body.font-size-xl {
  font-size: 1.4rem;
}
