/*
Theme Name: True Promise Home Health
Theme URI: https://truepromisehomehealth.com
Description: A compassionate, professional healthcare theme
Version: 1.0
Author: True Promise Home Health
*/

:root {
  /* Color Palette - Matching Logo's Teal-to-Blue Gradient */
  --primary-teal: #00D4C8;        /* Bright teal from logo top */
  --primary-blue: #0096D6;        /* Rich blue from logo bottom */
  --deep-blue: #006BA6;           /* Darker blue for depth */
  --light-teal: #5CE1E6;          /* Light accent teal */
  --warm-cream: #F8F9FA;          /* Clean, modern background */
  --accent-orange: #FF9D5C;       /* Warm accent for CTAs */
  --deep-navy: #003D5B;           /* Professional dark blue */
  --pure-white: #FFFFFF;
  --soft-grey: #E9ECEF;
  --text-dark: #1A1A2E;
  --text-light: #6C757D;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Typography */
  --font-display: 'Crimson Pro', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--warm-cream);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--deep-navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

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

a:hover {
  color: var(--soft-teal);
}

/* Header */
.site-header {
  background: var(--pure-white);
  padding: 1.5rem 0;
  box-shadow: 0 2px 20px rgba(43, 95, 126, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.site-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.site-logo span {
  color: var(--primary-blue);
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
  color: var(--pure-white) !important;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 212, 200, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 212, 200, 0.4);
}

.cta-button::after {
  display: none;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-blue) 50%, var(--primary-teal) 100%);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 200, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 150, 214, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content h1 {
  color: var(--pure-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.btn-primary {
  background: var(--accent-orange);
  color: var(--pure-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(255, 157, 92, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #FF8A3D;
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(255, 157, 92, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--pure-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pure-white);
}

.hero-visual {
  animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hero-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.hero-features {
  list-style: none;
}

.hero-features li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--soft-grey);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-dark);
}

.hero-features li:last-child {
  border-bottom: none;
}

.hero-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
  color: white;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

/* About Section */
.about-section {
  padding: var(--spacing-xl) 0;
  background: var(--pure-white);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

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

.about-card {
  background: var(--warm-cream);
  padding: 2.5rem;
  border-radius: 15px;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 150, 214, 0.15);
  border-color: var(--primary-teal);
}

.about-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Services Section */
.services-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, var(--warm-cream) 0%, var(--pure-white) 100%);
  position: relative;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.service-card {
  background: var(--pure-white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(43, 95, 126, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--soft-grey);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 150, 214, 0.2);
  border-color: var(--primary-blue);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-blue);
}

.service-list {
  list-style: none;
  margin-top: 1.25rem;
}

.service-list li {
  padding: 0.65rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-dark);
  line-height: 1.6;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-teal);
  font-weight: bold;
}

/* Quote Section */
.quote-section {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '"';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20rem;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  pointer-events: none;
}

.quote-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.quote-section blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.5;
  color: var(--pure-white);
  font-style: italic;
  margin: 0;
}

/* Join Team Section */
.join-section {
  padding: var(--spacing-xl) 0;
  background: var(--pure-white);
}

.join-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.join-content {
  background: linear-gradient(135deg, var(--deep-blue), var(--primary-blue));
  padding: 4rem 3rem;
  border-radius: 20px;
  color: var(--pure-white);
  position: relative;
  overflow: hidden;
}

.join-content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.join-content h2 {
  color: var(--pure-white);
  margin-bottom: 1.25rem;
}

.join-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.join-email {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
  color: var(--pure-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.join-email:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--pure-white);
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: var(--deep-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-lg) 0 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--pure-white);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--primary-teal);
}

.footer-links {
  list-style: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Accessibility Styles */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: var(--pure-white);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--warm-cream);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--deep-navy);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #1A3A4F;
    --text-dark: #000000;
    --pure-white: #FFFFFF;
  }
  
  .service-card,
  .about-card {
    border: 2px solid var(--text-dark);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.menu-icon span {
  display: block;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pure-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
  }
  
  .main-nav ul.active {
    display: flex;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print Styles */
@media print {
  .site-header,
  .hero-buttons,
  .mobile-menu-toggle,
  .skip-link {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
}

