/* ===================================
   CarePlus Health & Wellness - CSS
   =================================== */

/* Root Variables */
:root {
  --primary-color: #6b46c1;
  --primary-dark: #553c9a;
  --primary-light: #9f7aea;
  --secondary-color: #4299e1;
  --accent-color: #f6ad55;
  --text-dark: #2d3748;
  --text-light: #718096;
  --text-white: #ffffff;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --bg-gray: #edf2f7;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --border-radius: 10px;
  --max-width: 1200px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-white);
}

.btn-accent:hover {
  background-color: #ee5a5a;
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   Header Section
   =================================== */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 25px;
  font-size: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #553c9a 0%, #764ba2 100%);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.hero-feature span {
  color: var(--secondary-color);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  min-width: 200px;
}

.hero-buttons .btn-primary {
  background-color: var(--text-white);
  color: var(--primary-color);
}

.hero-buttons .btn-primary:hover {
  background-color: var(--bg-gray);
}

.hero-buttons .btn-secondary {
  border-color: var(--text-white);
  color: var(--text-white);
}

.hero-buttons .btn-secondary:hover {
  background-color: var(--text-white);
  color: var(--primary-color);
}

/* ===================================
   About Us Section
   =================================== */
.about {
  background-color: var(--bg-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.about-badge h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
}

.about-badge p {
  font-size: 14px;
  opacity: 0.9;
}

.about-text h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-text h2 span {
  color: var(--primary-color);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-weight: 500;
}

.about-feature span {
  color: var(--secondary-color);
  font-size: 18px;
}

/* ===================================
   Services Section
   =================================== */
.services {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.service-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
}

.service-card h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-choose {
  background-color: var(--bg-white);
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.why-text h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.why-text p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 16px;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.why-feature:hover {
  background-color: var(--bg-light);
}

.why-feature-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.why-feature-text h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.why-feature-text p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ===================================
   Healthcare Plans Section
   =================================== */
.plans {
  background: linear-gradient(135deg, #553c9a 0%, #764ba2 100%);
  color: var(--text-white);
}

.plans .section-title h2,
.plans .section-title p {
  color: var(--text-white);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto 50px;
  padding: 0 20px;
}

.plan-card {
  background-color: var(--bg-white);
  color: var(--text-dark);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.plan-card.featured {
  transform: scale(1.05);
  border: 3px solid var(--secondary-color);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.plan-badge {
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.plan-card h3 {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.plan-features {
  text-align: left;
  margin-bottom: 30px;
}

.plan-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-gray);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.plan-features li span {
  color: var(--secondary-color);
  font-weight: 700;
}

.plans-cta {
  text-align: center;
}

.plans-cta .btn {
  background-color: var(--text-white);
  color: var(--primary-color);
}

.plans-cta .btn:hover {
  background-color: var(--bg-gray);
}

/* ===================================
   Appointment Section
   =================================== */
.appointment {
  background-color: var(--bg-light);
}

.appointment-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.appointment-form {
  background-color: var(--bg-white);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--bg-gray);
  border-radius: var(--border-radius);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.appointment-form .btn {
  width: 100%;
  min-width: auto;
}

.form-success {
  background-color: rgba(0, 184, 148, 0.1);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
  background-color: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.testimonial-card {
  background-color: var(--bg-light);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: #ffc107;
  font-size: 20px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.testimonial-author-info p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
  background-color: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.contact-item-text h4 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.contact-item-text p {
  margin-bottom: 0;
  font-size: 14px;
}

.contact-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  
  height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.newsletter h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.newsletter p {
  margin-bottom: 30px;
  opacity: 0.95;
}

.newsletter-form {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.newsletter-form .form-group input {
  margin-bottom: 20px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
}

.newsletter-form .btn {
  width: 100%;
  min-width: auto;
}

.newsletter-success {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: var(--border-radius);
  display: none;
}

.newsletter-success.show {
  display: block;
}

/* ===================================
   Legal Section
   =================================== */
.legal {
  background-color: var(--bg-white);
  padding: 60px 0;
}

.legal-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.legal-card {
  padding: 30px;
  border: 2px solid var(--bg-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.legal-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.legal-card h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

/* ===================================
   Footer Section
   =================================== */
.footer {
  background-color: #1a1a2e;
  color: var(--text-white);
  padding: 60px 0 20px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 18px;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
  .about-content,
  .why-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--bg-white);
    width: 100%;
    padding: 30px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    width: 100%;
    padding: 10px 0;
  }

  .nav-cta {
    width: 100%;
    margin-top: 15px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: scale(1);
  }

  .plan-card.featured:hover {
    transform: translateY(-10px);
  }

  section {
    padding: 60px 0;
  }

  .appointment-form,
  .newsletter-form {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .service-card,
  .testimonial-card {
    padding: 30px 20px;
  }

  .about-badge {
    padding: 15px;
    right: -10px;
    bottom: -10px;
  }

  .about-badge h3 {
    font-size: 28px;
  }

  .contact-map {
    height: 300px;
  }
}