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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #f4f4f4;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Utility Classes ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: #0056b3;
}

.btn.secondary {
  background-color: #6c757d;
}

.btn.secondary:hover {
  background-color: #5a6268;
}

/* ===== Header ===== */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007BFF;
}

logo i {
  margin-right: 0.5rem;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav ul li a {
  padding: 0.5rem 0.75rem;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #007BFF;
}

/* Mobile menu icon */
.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* ===== Hero Section ===== */
.hero {
  padding-top: 100px; /* to compensate fixed header */
  padding-bottom: 3rem;
  background-color: #fff;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #007BFF;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.hero-buttons .btn {
  margin-right: 1rem;
}

.hero-image img {
  max-width: 600px;
  height: auto;
  border-radius: 8px;
}

/* ===== Services Section ===== */
.services {
  padding: 3rem 0;
  background-color: #f9f9f9;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 0.5rem;
}

.services .section-description {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
}

.service-card i {
  font-size: 2.5rem;
  color: #007BFF;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #333;
}

.service-card p {
  color: #555;
  font-size: 1rem;
}

/* ===== Care Plan Section ===== */
.care-plan {
  padding: 3rem 0;
}

.care-plan h2 {
  text-align: center;
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 0.5rem;
}

.care-plan .section-description {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.plan-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.plan-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform 0.3s;
}

.plan-card.popular {
  border: 2px solid #007BFF;
}

.plan-card.popular .popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #007BFF;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.plan-card h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
}

.plan-card .price {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #007BFF;
  margin-bottom: 1rem;
}

.plan-card .price span {
  font-size: 1rem;
  color: #666;
}

.plan-card ul {
  list-style: disc;
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: #555;
}

.plan-card ul li {
  margin-bottom: 0.5rem;
}

.plan-card button.btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
  background-color: #f9f9f9;
  padding: 3rem 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 2rem;
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
}

.testimonial {
  background-color: #fff;
  padding: 2rem;
  min-width: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  flex-shrink: 0;
}

.testimonial .rating {
  color: #ffc107;
  margin-bottom: 1rem;
}

.testimonial p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.testimonial .patient {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial .patient img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial .patient-info h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  color: #333;
}

.testimonial .patient-info span {
  color: #777;
  font-size: 0.9rem;
}

/* ===== Call to Action Section ===== */
.cta {
  padding: 3rem 0;
  background-color: #007BFF;
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta .btn {
  background-color: #fff;
  color: #007BFF;
}

.cta .btn:hover {
  background-color: #e9ecef;
}

/* ===== Footer ===== */
footer {
  background-color: #333;
  color: #ccc;
  padding: 2rem 0;
}

footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

footer .footer-col {
  flex: 1;
  min-width: 200px;
}

footer .footer-col h3 {
  color: #fff;
  margin-bottom: 1rem;
}

footer .footer-col p,
footer .footer-col ul li {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
}

footer .footer-col ul li a {
  color: #ccc;
  transition: color 0.3s;
}

footer .footer-col ul li a:hover {
  color: #fff;
}

footer .social-links a {
  margin-right: 0.5rem;
  color: #ccc;
  font-size: 1.2rem;
  transition: color 0.3s;
}

footer .social-links a:hover {
  color: #fff;
}

footer .footer-bottom {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1rem;
}

footer .legal-links a {
  margin: 0 0.5rem;
  color: #ccc;
  font-size: 0.9rem;
}

footer .legal-links a:hover {
  color: #fff;
}

/* ===== Modals ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 2000;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #007BFF;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #333;
}

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

.form-group textarea {
  resize: vertical;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column-reverse;
  }

  nav ul {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}
