/* Halocare - Professional & Warm Caregiving Website */
/* Refined palette: warm purples, cream backgrounds, soft accents */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  /* Official palette */
  --white: #ffffff;
  --purple: #9a8bb4;
  --cream: #e3d6c8;
  --gray-dark: #4b4b4b;

  /* Derived from palette */
  --purple-dark: #6b5b7a;
  --purple-mid: #8a7a9f;
  --purple-light: #9a8bb4;
  --purple-header: #7a6b94;
  --purple-active: #9a8bb4;
  --purple-soft: rgba(154, 139, 180, 0.2);
  --cream-warm: #e8dfd6;
  --gray-mid: #5a5563;
  --gray-light: #6b6b6b;
  --gray-soft: #8a8a8a;
  --beige-btn: #e3d6c8;
  --beige-hover: #d9cabb;
  --warm-gold: #c9a86c;
  --warm-gold-soft: rgba(201, 168, 108, 0.2);

  /* Shadows - warmer, softer */
  --shadow-soft: 0 2px 16px rgba(75, 75, 75, 0.06);
  --shadow-card: 0 4px 24px rgba(75, 75, 75, 0.08);
  --shadow-modal: 0 12px 48px rgba(75, 75, 75, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--gray-dark);
  line-height: 1.65;
  background: var(--cream-warm);
  font-weight: 400;
  animation: page-fade-in 0.5s ease-out;
}

body.contact-page {
  background: linear-gradient(180deg, #e0d6ce 0%, #d9cec4 50%, #d2c6bc 100%);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1001;
  padding: 0.75rem 1.25rem;
  background: var(--purple-mid);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* Backdrop-filter fallback for older browsers */
@supports not (backdrop-filter: blur(1px)) {
  .header { background: rgba(122, 107, 148, 0.95); }
  .story-page .profile-section { background: rgba(154, 139, 180, 0.25); }
  .contact-section { background: rgba(154, 139, 180, 0.25); }
}

/* Reduced motion */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Header - frosted glass with purple tint */
.header {
  background: rgba(154, 139, 180, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.875rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 20px rgba(154, 139, 180, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.logo:hover {
  opacity: 0.9;
}
.logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.logo-fallback {
  display: none;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* Hamburger - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.nav a.active {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Main content container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero section - split layout, professional & modern */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  background: var(--white);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem 3rem 3rem;
  max-width: 560px;
}

.hero-text h1 {
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-text .subheading {
  font-size: 1.25rem;
  color: var(--gray-mid);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-text p {
  color: var(--gray-mid);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-smooth);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn-beige {
  background: var(--beige-btn);
  color: var(--gray-dark);
  box-shadow: var(--shadow-soft);
}

.btn-beige:hover {
  background: var(--beige-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple-mid) 0%, var(--purple-dark) 100%);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(125, 107, 143, 0.35);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(125, 107, 143, 0.4);
}

.hero-image {
  position: relative;
  overflow: hidden;
}

/* Gradient overlay: fades from white (left) into image (right) for seamless blend */
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--white) 0%,
    rgba(255, 255, 255, 0.85) 25%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Mobile: remove overlay for clean block look */
@media (max-width: 900px) {
  .hero-image-overlay {
    display: none;
  }
}

/* Values section - warm cards */
.values-section {
  padding: 4rem 2rem;
  background: var(--cream);
}

.values-intro {
  text-align: center;
  color: var(--gray-mid);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.values-section h2 {
  text-align: center;
  color: var(--gray-dark);
  margin-bottom: 2.5rem;
  font-size: 1.75rem;
  font-family: 'Lora', serif;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(168, 146, 184, 0.15);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(168, 146, 184, 0.25);
}

.value-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-mid) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(125, 107, 143, 0.25);
}

.value-card h3 {
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.value-card p {
  color: var(--gray-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Our Story page */
.story-page {
  background: linear-gradient(160deg, #f2eeea 0%, #e8e2dc 50%, #e2dbd4 100%);
  min-height: 100vh;
}

.story-page .story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.story-left h2 {
  color: var(--purple-mid);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: left;
  font-family: 'Lora', serif;
}

.story-left p {
  color: var(--gray-dark);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  text-align: left;
}

.story-left p:last-of-type {
  margin-bottom: 0;
}

.story-page .profile-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(154, 139, 180, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(154, 139, 180, 0.2), 0 1px 3px rgba(75, 75, 75, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.story-page .profile-section:last-child {
  margin-bottom: 0;
}

.story-page .profile-section h2 {
  color: var(--purple-mid);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: 'Lora', serif;
}

.story-page .profile-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.story-page .profile-card {
  text-align: center;
  flex: 1;
  min-width: 0;
  transition: transform var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.story-page .profile-card:hover {
  transform: translateY(-2px);
}

.profile-img-wrap {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: 2px solid rgba(168, 146, 184, 0.4);
  overflow: hidden;
  margin: 0 auto 0.4rem;
  transition: border-color var(--transition-fast);
}

.profile-card:hover .profile-img-wrap {
  border-color: var(--purple-light);
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card span {
  font-size: 0.75rem;
  color: var(--gray-mid);
  display: block;
  text-align: center;
}

/* Caregiver profile popup */
.caregiver-modal-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.caregiver-modal-photo {
  flex-shrink: 0;
}

.caregiver-modal-photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168, 146, 184, 0.3);
}

.caregiver-modal-info h2 {
  font-size: 1.5rem;
  color: var(--gray-dark);
  margin-bottom: 0.25rem;
}

.caregiver-profession {
  font-weight: 600;
  color: var(--purple-mid);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.caregiver-modal-info h3 {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.caregiver-modal-info #caregiver-modal-skills {
  color: var(--gray-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Services page */
.services-hero {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}

.services-hero h1 {
  font-size: 2rem;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
  font-family: 'Lora', serif;
}

.services-hero p {
  color: var(--gray-mid);
  font-size: 1.1rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(168, 146, 184, 0.2);
  border-radius: 16px;
  padding: 2rem;
  min-height: 220px;
  width: 100%;
  max-width: 340px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(168, 146, 184, 0.35);
}

/* Hover background images - caregiving scenes that appear subtly on hover */
.service-card-bg {
  position: absolute;
  inset: 0;
  background-image: var(--service-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  border-radius: 16px;
}

.service-card:hover .service-card-bg {
  opacity: 0.4;
}

.service-card--daily { --service-bg: url('https://images.unsplash.com/photo-1607619056574-7b8d3ee536b2?w=500'); }
.service-card--health { --service-bg: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?w=500'); }
.service-card--respite { --service-bg: url('https://images.unsplash.com/photo-1587854692152-cbe660dbde88?w=500'); }
.service-card--companionship { --service-bg: url('https://images.unsplash.com/photo-1609220136736-443140cffec6?w=500'); }
.service-card--comprehensive { --service-bg: url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=500'); }

/* Overlay keeps text readable when image shows */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(253, 251, 248, 0.85) 0%, rgba(253, 251, 248, 0.92) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 16px;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 0.75;
}

.service-card h3 {
  font-size: 1rem;
  color: var(--gray-dark);
  margin-bottom: auto;
  position: relative;
  z-index: 2;
  font-weight: 600;
}

.service-card .btn {
  margin-top: auto;
  align-self: flex-start;
  position: relative;
  z-index: 2;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(75, 75, 75, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--cream);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  position: relative;
  border: 1px solid rgba(168, 146, 184, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(125, 107, 143, 0.15);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--gray-mid);
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--purple-soft);
  color: var(--gray-dark);
}

.modal-content {
  padding: 2rem;
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-dark);
  font-family: 'Lora', serif;
}

.modal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(168, 146, 184, 0.2);
}

.modal-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--gray-dark);
  font-weight: 600;
}

.modal-section p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.modal-section strong {
  display: block;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 0.5rem;
  color: var(--gray-dark);
}

.modal-section .btn {
  margin-top: 1rem;
}

/* Contact page */
.contact-section {
  max-width: none;
  margin: 0;
  padding: 3rem 2rem;
  background: rgba(154, 139, 180, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(154, 139, 180, 0.2), 0 1px 3px rgba(75, 75, 75, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-section h1 {
  color: var(--gray-dark);
  margin-bottom: 0.75rem;
  font-family: 'Lora', serif;
}

.contact-section > p {
  color: var(--gray-mid);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(168, 146, 184, 0.3);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-soft);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-message--success {
  background: rgba(34, 139, 34, 0.15);
  color: #1a5f1a;
}

.form-message--error {
  background: rgba(180, 50, 50, 0.15);
  color: #8b2020;
}

.caregivers-intro {
  color: var(--gray-mid);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
}

/* Caregivers Corner & page heroes */
.page-hero {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}

.page-hero h1 {
  font-size: 2rem;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
  font-family: 'Lora', serif;
}

.page-hero p {
  color: var(--gray-mid);
}

/* Hero badge & actions */
.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-mid);
  background: var(--purple-soft);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-arrow svg {
  transition: transform var(--transition-fast);
}

.btn-arrow:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Testimonials section */
.testimonials-section {
  padding: 4rem 2rem;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-family: 'Lora', serif;
  color: var(--gray-dark);
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: linear-gradient(145deg, var(--cream) 0%, var(--cream-warm) 100%);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(168, 146, 184, 0.12);
  box-shadow: var(--shadow-soft);
  position: relative;
  margin: 0;
  transition: all var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-size: 3.5rem;
  font-family: 'Lora', serif;
  color: var(--purple-light);
  opacity: 0.35;
  line-height: 1;
}

.testimonial-card p {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
}

.testimonial-card footer {
  background: none;
  color: inherit;
  text-align: left;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.testimonial-card footer strong {
  display: block;
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.testimonial-card footer span {
  font-size: 0.8rem;
  color: var(--gray-soft);
}

/* CTA banner */
.cta-banner {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--purple-header) 0%, var(--purple-dark) 100%);
  color: var(--white);
}

.cta-banner-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.75rem;
  font-family: 'Lora', serif;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner .btn-purple {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.cta-banner .btn-purple:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Contact page layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 2rem;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1rem;
}

.contact-info-card {
  background: rgba(154, 139, 180, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
  transition: all var(--transition-smooth);
}

.contact-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--white);
}

.contact-info-card h3 {
  font-size: 1rem;
  color: var(--gray-dark);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.contact-info-card a {
  color: var(--purple-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.contact-info-card a:hover {
  color: var(--purple-dark);
}

.contact-info-card p {
  color: var(--gray-soft);
  font-size: 0.85rem;
  margin: 0;
}

/* Footer - rich, warm */
.footer {
  background: linear-gradient(135deg, var(--purple-header) 0%, var(--purple-dark) 100%);
  color: var(--white);
  padding: 0;
  margin-top: 0;
  box-shadow: 0 -4px 24px rgba(75, 75, 75, 0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.footer-logo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-links a,
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-contact svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 1.25rem 2rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.65;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--purple-mid) 0%, var(--purple-dark) 100%);
  color: var(--white);
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(107, 91, 122, 0.35);
  transition: all var(--transition-smooth);
  animation: float-in 0.6s ease-out 1s both;
}

.floating-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 28px rgba(107, 91, 122, 0.45);
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal animations */
.reveal-section,
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-item {
  transform: translateY(20px);
}

.reveal-section.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item:nth-child(2) { transition-delay: 0.15s; }
.reveal-item:nth-child(3) { transition-delay: 0.3s; }

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple-mid);
  outline-offset: 2px;
}

/* Responsive - tablets & small laptops */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 2.5rem 2rem 2rem;
    max-width: none;
    text-align: center;
    order: 1;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }

  .hero-actions {
    justify-content: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .contact-info-panel {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .contact-info-card {
    flex: 1 1 200px;
    max-width: 240px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links a,
  .footer-contact a {
    justify-content: center;
  }

  .hero-image {
    order: 2;
  }

  .hero-image img {
    min-height: 280px;
  }

  .story-page .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 1.5rem;
  }

  .story-left {
    padding: 0;
  }

  .story-left h2 {
    text-align: center;
  }

  .story-left p {
    text-align: center;
  }

  .story-page .profile-section,
  .profile-section {
    text-align: center;
  }

  .story-page .profile-grid {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .story-page .profile-card {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: 140px;
  }

  .values-section {
    padding: 3rem 1.5rem;
  }

  .values-intro {
    padding: 0 0.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-hero {
    padding: 2rem 1.5rem;
  }

  .services-hero h1 {
    font-size: 1.75rem;
  }

  .services-grid {
    padding: 1.5rem;
  }

  .modal-split {
    grid-template-columns: 1fr;
  }

  .caregiver-modal-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Progressive enhancement: without JS, show nav and hide hamburger on mobile */
@media (max-width: 600px) {
  html:not(.js-loaded) .nav-toggle { display: none !important; }
  html:not(.js-loaded) .header-inner { grid-template-columns: 1fr auto; }
  html:not(.js-loaded) .nav { display: flex !important; flex-direction: column; position: static; min-width: auto; background: transparent; box-shadow: none; }
}

/* Responsive - phones: logo center, dropdown menu on right */
@media (max-width: 600px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: flex;
    justify-self: end;
    grid-column: 3;
  }

  .logo {
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    margin-top: 0.5rem;
    flex-direction: column;
    background: rgba(154, 139, 180, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: var(--shadow-modal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 101;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  .header {
    padding: 1rem;
  }

  .hero-text {
    padding: 2rem 1.25rem 1.5rem;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-text .subheading {
    font-size: 1.1rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image img {
    min-height: 240px;
  }

  .values-section {
    padding: 2.5rem 1rem;
  }

  .values-intro {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
  }

  .value-card {
    padding: 1.5rem 1rem;
  }

  .value-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .story-page .story-grid {
    padding: 1.5rem 1rem;
    gap: 2rem;
  }

  .story-page .profile-section h2 {
    font-size: 1.3rem;
  }

  .profile-img-wrap {
    width: 75px;
    height: 75px;
  }

  .profile-card span {
    font-size: 0.7rem;
  }

  .services-hero h1 {
    font-size: 1.5rem;
  }

  .services-hero p {
    font-size: 1rem;
  }

  .service-card {
    padding: 1.5rem;
    min-height: 180px;
  }

  .contact-section {
    padding: 1.5rem 1.25rem;
    margin: 0;
    max-width: none;
  }

  .contact-layout {
    padding: 0 0.75rem;
    gap: 1.5rem;
  }

  .contact-info-panel {
    flex-direction: column;
  }

  .contact-info-card {
    max-width: none;
  }

  .floating-cta span {
    display: none;
  }

  .floating-cta {
    padding: 1rem;
    border-radius: 50%;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }

  .footer-inner {
    padding: 2rem 1.5rem 1.5rem;
  }

  .page-hero {
    padding: 2rem 1rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .footer {
    padding: 1.5rem 1rem;
    margin-top: 2.5rem;
  }

  .caregiver-modal-body {
    gap: 1rem;
  }

  .caregiver-modal-photo img {
    width: 100px;
    height: 100px;
  }

  .caregiver-modal-info h2 {
    font-size: 1.3rem;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-text h1 {
    font-size: 1.9rem;
  }

  .story-page .profile-card {
    flex: 0 0 100%;
  }
}
