/* Hospice Engine - Modern Theme 2026 */
/* Color Palette from Logo */
:root {
  --blue-dark: #1a4a8a;
  --blue-primary: #2563a8;
  --blue-light: #4ba3e3;
  --blue-gradient: linear-gradient(135deg, #4ba3e3 0%, #1a4a8a 100%);
  --orange-primary: #f47b20;
  --orange-light: #f9a826;
  --orange-gradient: linear-gradient(135deg, #f9a826 0%, #f47b20 100%);
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  margin: 0;
  padding: 0;
  display: block !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-top: 0;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }

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

/* Header / Navigation */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo { display: flex; align-items: center; }
.logo img { height: 50px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--gray-800);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--blue-primary); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary,
a.btn-primary,
.post-content a.btn-primary,
.two-col-content a.btn-primary,
.post-cta a.btn-primary {
  background: var(--blue-gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-primary:hover,
a.btn-primary:hover,
.post-content a.btn-primary:hover,
.two-col-content a.btn-primary:hover,
.post-cta a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
}

.btn-secondary:hover {
  background: var(--blue-primary);
  color: var(--white);
}

.btn-orange {
  background: var(--orange-gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue-primary);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Hero Section */
.hero {
  background: var(--blue-gradient);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 50%;
  background: url('/resources/images/nurse-ipad.jpg') center/cover;
  opacity: 0.15;
}

.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 650px; }

.hero h1 {
  color: var(--white);
  font-size: 3.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero h1 span { color: var(--orange-light); }

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

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

/* Stats Section */
.stats { background: var(--gray-100); padding: 3rem 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--blue-primary);
  margin-bottom: 0.5rem;
}

.stat-item h3 span { color: var(--orange-primary); }
.stat-item p { color: var(--gray-600); margin: 0; font-size: 0.95rem; }

/* Features Section */
.features { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--gray-600); font-size: 1.1rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--blue-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.feature-icon.orange { background: var(--orange-gradient); }
.feature-content h3 { margin-bottom: 0.75rem; color: var(--gray-900); }
.feature-content p { color: var(--gray-600); margin-bottom: 0; font-size: 0.95rem; }

/* Page Hero (subpages) */
.page-hero {
  background: var(--blue-gradient);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.page-hero h1 span {
  color: var(--orange-light);
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Two Column Section */
.two-col { padding: 5rem 0; }
.two-col.gray-bg { background: var(--gray-100); }

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.two-col-content h2 { margin-bottom: 1.5rem; }
.two-col-content p { color: var(--gray-600); margin-bottom: 1.5rem; }

.two-col-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.two-col-content li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray-700);
}

.two-col-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue-primary);
  font-weight: 700;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: var(--blue-gradient);
  color: var(--white);
}

.testimonials .section-header h2 { color: var(--white); }
.testimonials .section-header p { color: rgba(255,255,255,0.85); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-card blockquote {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-card cite { display: block; font-style: normal; }
.testimonial-card cite strong { display: block; color: var(--orange-light); }
.testimonial-card cite span { font-size: 0.875rem; opacity: 0.85; }

/* CTA Section */
.cta { padding: 5rem 0; text-align: center; }
.cta h2 { margin-bottom: 1rem; }
.cta p { color: var(--gray-600); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; }

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: var(--gray-400); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

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

.social-links { display: flex; gap: 1rem; }

.social-links a {
  width: 36px;
  height: 36px;
  background: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover { background: var(--blue-primary); }

/* EMR Partners Section */
.emr-partners {
  padding: 5rem 0;
  background: var(--white);
  text-align: center;
}

.emr-partners .section-header h2 {
  font-size: 2.5rem;
}

.emr-partners .section-header h2 span {
  color: var(--orange-primary);
}

.emr-list {
  max-width: 800px;
  margin: 0 auto;
}

.emr-intro {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.emr-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.emr-item {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray-800);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.emr-item:hover {
  border-color: var(--blue-primary);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--blue-primary);
}

.emr-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-bottom: 0;
}

.emr-cta {
  margin-top: 2.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .two-col-grid { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .emr-partners .section-header h2 { font-size: 1.75rem; }
  .emr-logos { gap: 0.75rem; }
  .emr-item { padding: 0.75rem 1.25rem; font-size: 1rem; }
  .emr-tagline { font-size: 1.1rem; }
  .page-hero { padding: 3rem 0; }
  .page-hero h1 { font-size: 2rem; }
}

/* Blog Styles */
.blog-listing {
  padding: 4rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-content {
  padding: 2rem;
}

.blog-category {
  display: inline-block;
  background: var(--blue-light);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.blog-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-card h2 a {
  color: var(--gray-900);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--blue-primary);
}

.blog-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.blog-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.blog-date,
.blog-read-time {
  display: flex;
  align-items: center;
}

/* Blog Post Single */
.blog-post {
  padding: 4rem 0;
}

.blog-post .container {
  max-width: 800px;
}

.post-header {
  margin-bottom: 3rem;
}

.back-link {
  display: inline-block;
  color: var(--blue-primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--blue-dark);
}

.post-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content .lead {
  font-size: 1.25rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.post-content h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.post-content h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}

.post-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}

.post-content li strong {
  color: var(--gray-900);
}

.post-content a {
  color: var(--blue-primary);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--blue-dark);
}

.post-cta {
  background: var(--gray-100);
  border-left: 4px solid var(--orange-primary);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-cta h3 {
  color: var(--blue-dark);
  margin-top: 0;
  margin-bottom: 1rem;
}

.post-cta p {
  margin-bottom: 1.5rem;
}

.post-cta .btn {
  margin-top: 0.5rem;
}

.service-price {
  font-size: 1.25rem;
  color: var(--blue-primary);
  margin-top: 1.5rem;
}

.gray-bg {
  background: var(--gray-100);
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .post-header h1 {
    font-size: 1.75rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-blue { color: var(--blue-primary); }
.text-orange { color: var(--orange-primary); }
