/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #245a94;
  --color-primary-dark: #1a4570;
  --color-primary-light: #3a7ab8;
  --color-secondary: #48bb78;
  --color-dark: #1a3a5c;
  --color-text: #2d3748;
  --color-text-light: #4a5568;
  --color-text-muted: #718096;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-bg-highlight: #ebf8ff;
  --color-border: #e2e8f0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
}

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

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

.nav a:hover {
  color: var(--color-primary);
}

.nav a.btn-primary {
  color: white;
}

.nav a.btn-primary:hover {
  color: white;
}

.nav a.btn-outline {
  color: var(--color-primary);
}

.nav a.btn-outline:hover {
  color: white;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.btn-primary:hover {
  background: #1e88a1;
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

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

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

.btn-outline:hover .btn-icon {
  color: white;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  transition: color 0.2s;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  text-align: center;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

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

.hero h1 {
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero .btn {
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-small {
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  min-height: auto;
}

.hero-small h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-gradient {
  background: linear-gradient(135deg, #245a94 0%, #1e759d 25%, #1e88a1 50%, #46a37c 75%, #82c255 100%);
}

.hero-gradient h1,
.hero-gradient p {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-image-bg {
  position: relative;
  background-image: url('../assets/camera_back.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-image-bg h2 {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.section-image-bg .content-card {
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

.section-image-bg .content-card h3 {
  color: white;
}

.section-image-bg .content-card p,
.section-image-bg .content-card li {
  color: rgba(255, 255, 255, 0.9);
}

.section-highlight {
  background: linear-gradient(135deg, #245a94 0%, #1e759d 25%, #1e88a1 50%, #46a37c 75%, #82c255 100%);
  text-align: center;
}

.section-highlight h2,
.section-highlight h3,
.section-highlight p,
.section-highlight a {
  color: white;
}

.section-highlight h2 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-hero-bg {
  position: relative;
  background: url('../assets/hospice_care_hands.jpg') center center / cover no-repeat;
}

.section-hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.section-hero-bg .container {
  position: relative;
  z-index: 1;
}

.section-hero-bg h2,
.section-hero-bg p,
.section-hero-bg .section-intro,
.section-hero-bg .emphasis {
  color: white;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 800px;
}

.section-subhead {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.emphasis {
  font-weight: 600;
  color: var(--color-dark);
}

/* Problem List */
.problem-list {
  list-style: none;
  padding-left: 0;
}

.problem-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-text-light);
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card-image {
  background-size: cover;
  background-position: center;
  border: none;
  padding: 0;
}

.feature-card h3 {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.content-card {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.content-note {
  margin-top: 1rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-number.step-1 {
  background: #245a94;
}

.step-number.step-2 {
  background: #1e88a1;
}

.step-number.step-3 {
  background: #82c255;
}

/* Client Cards */
.client-cards {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem 0;
}

.client-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.client-card-1 {
  background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), #deeaf7;
}

.client-card-2 {
  background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), #cadce0;
}

.client-card-3 {
  background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), #e5f6d8;
}

.client-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.client-label {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 1.1rem;
}

.client-tagline {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .client-cards {
    flex-direction: column;
  }
}

/* Qualified List */
.qualified-list li {
  margin-bottom: 0.75rem;
}

/* Link Arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  margin-top: 1rem;
}

.link-arrow::after {
  content: " \2192";
  margin-left: 0.5rem;
  transition: margin-left 0.2s;
}

.link-arrow:hover::after {
  margin-left: 0.75rem;
}

/* Service Area Section */
.section-service-area {
  background: var(--color-bg-alt);
}

.service-area-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-area-content h2 {
  margin-bottom: 1.5rem;
}

.service-area-content p {
  margin-bottom: 1rem;
}

.service-area-note {
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

.service-area-note a {
  color: var(--color-primary);
  font-weight: 500;
}

.service-area-note a:hover {
  color: #1e88a1;
}

.service-area-map img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .service-area-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-area-map {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Contact Section */
.section-contact {
  background: linear-gradient(135deg, var(--color-dark) 0%, #2c5282 100%);
  color: white;
}

.section-contact h2,
.section-contact h3 {
  color: white;
}

.section-contact .section-intro {
  color: rgba(255, 255, 255, 0.85);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: end;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

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

.contact-info p {
  color: rgba(255, 255, 255, 0.85);
}

.contact-image {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .contact-image {
    display: none;
  }
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

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

.form-phone-option {
  text-align: center;
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.phone-link {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.phone-link:hover {
  color: #1e88a1;
}

.phone-icon {
  width: 1em;
  height: 1em;
}

/* Content Page */
.content-page {
  max-width: 800px;
}

.content-page h2 {
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-logo {
  height: 40px;
  margin-bottom: 0.5rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

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

.footer-copyright {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Form Success Message */
.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success h3 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
  }

  .nav.active {
    display: flex;
  }

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

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .section {
    padding: 3rem 0;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
