/* Extracted from index.html <style> block */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header Styles */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo::before {
  content: "";
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
}

.logo::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #667eea;
  border-radius: 50%;
  position: absolute;
}

.brand-info h1 {
  font-size: 1.5rem;
  color: #667eea;
  font-weight: 700;
}

.brand-info p {
  font-size: 0.875rem;
  color: #666;
}

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

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  cursor: pointer;
}

nav a:hover,
nav a.active {
  color: #667eea;
}

.call-now-btn {
  background: #667eea;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: background 0.3s;
}

.call-now-btn:hover {
  background: #5568d3;
}

/* Page Container */
.page {
  display: none;
  margin-top: 86px;
}

.page.active {
  display: block;
}

/* Hero Section */
.hero {
  background: url("miracle-care-caregiver.webp") center/cover;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* stacked gradients: a subtle black overlay on top of the colored tint
     to darken the hero image while preserving the purple/blue tint */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.5)),
    linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.45) 0%,
      rgba(118, 75, 162, 0.45) 70%
    );
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: url("") center/cover;
  padding: 3rem;
  border-radius: 12px;
}

/* Overlay effect for hero-content image: sits above the background image
   but below the textual content so text remains readable. */
.hero-content::before {
  /*
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.85) 0%,
    rgba(118, 75, 162, 0.85) 100%
  );
  */
  /* z-index: 2; */
  /* above .hero::before (z-index:1) */
  pointer-events: none;
  /* allow interaction with buttons/links */
}

/* Ensure direct children (headings, paragraphs, buttons) appear above the overlay */
.hero-content > * {
  position: relative;
  z-index: 3;
}

.hero h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero h2 .highlight {
  color: #f59e0b;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #f59e0b;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s;
  cursor: pointer;
}

.btn-primary:hover {
  background: #d97706;
}

.btn-secondary {
  background: white;
  color: #667eea;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f3f4f6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Styles */
.section {
  padding: 6rem 2rem;
}

.section.white {
  background: white;
}

.section.gray {
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.section-header p {
  font-size: 1.125rem;
  color: #6b7280;
}

/* Services Preview on Home */
.services-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.services-header-image {
  width: 100%;
  /* max-width: 600px; */
  display: block;
  margin: 0 auto 2rem;
  border-radius: 12px;
  /* object-fit: cover; */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.service-icon.blue {
  background: #dbeafe;
  color: #667eea;
}

.service-icon.green {
  background: #d1fae5;
  color: #10b981;
}

.service-icon.orange {
  background: #fed7aa;
  color: #f59e0b;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.service-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  cursor: pointer;
}

.service-link.orange {
  color: #f59e0b;
}

.service-link.green {
  color: #10b981;
}

.service-link:hover {
  opacity: 0.8;
}

.view-all-btn {
  background: #667eea;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: background 0.3s;
  margin: 0 auto;
  display: block;
  width: fit-content;
  cursor: pointer;
}

.view-all-btn:hover {
  background: #5568d3;
}

/* Counties */
.counties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.county-card {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.county-card:hover {
  border-color: #667eea;
  background: white;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.county-card h3 {
  font-size: 1.25rem;
  color: #667eea;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.county-card p {
  color: #6b7280;
}

/* About Page Styles */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

/* About image styling */
.about-image {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 1.5rem auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

@media (min-width: 900px) {
  /* Slightly tighter max-width on very wide screens */
  .about-image {
    max-width: 620px;
  }
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
  text-align: center;
}

.about-content p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.about-card ul {
  list-style: none;
  padding-left: 0;
}

.about-card ul li {
  padding: 0.5rem 0;
  color: #4b5563;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.about-card ul li:before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  flex-shrink: 0;
}

/* Services Page Styles */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.service-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.service-item h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-item .icon {
  font-size: 1.75rem;
}

.service-item p {
  color: #6b7280;
  line-height: 1.6;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #eff0f0;
  border-color: #e5e7eb;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.contact-item-content p,
.contact-item-content a {
  color: #6b7280;
  text-decoration: none;
}

.contact-item-content a {
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
}

.leadership-item {
  background-color: rgb(227, 159, 81);
}

.leadership-item h4 {
  color: white;
}

.leadership-item p {
  color: rgb(240, 226, 226);
  font-weight: 600;
}

.contact-item-content a:hover {
  color: #667eea;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: #667eea;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #5568d3;
}

/* Footer */
footer {
  background: #1f2937;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand .tagline {
  color: #9ca3af;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.footer-brand p {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.footer-section a:hover {
  color: #667eea;
}

.footer-contact-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.service-areas {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.service-areas h4 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.counties-list {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.counties-list span {
  color: #d1d5db;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom p:first-child {
  margin-bottom: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: flex;
  }

  .hero {
    padding: 4rem 1rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .counties-list {
    gap: 1.5rem;
  }

  .services-preview,
  .services-list,
  .counties-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-info h1 {
    font-size: 1.25rem;
  }

  .brand-info p {
    font-size: 0.75rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
