/* ==================== HOME PAGE ==================== */
/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  z-index: 2;
  color: #ffffff;
  text-align: left;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--background-color);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.7;
  color: #ffffff;
  font-weight: 300;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-image-wrapper {
  width: 100%;
  min-height: 450px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(103, 128, 254, 0.1) 100%);
}

/* Mission Section */
.mission {
  padding: 5rem 0;
  background: var(--background-color);
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-text {
  font-size: 1.4rem;
  line-height: 1.9;
  color: #475569;
  margin: 0;
}

.mission-text strong {
  color: #1e293b;
  font-weight: 700;
}

/* Services Preview */
.services-preview {
  padding: 5rem 0;
  background: var(--background-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--background-color);
  padding: 2.25rem 2rem;
  
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(74, 108, 247, 0.1);
  position: relative;
  overflow: visible;
  border: 2px solid rgba(74, 108, 247, 0.1);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 108, 247, 0.2);
  border-color: var(--primary-color);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card p {
  color: #475569;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-btn {
  background: var(--secondary-color);
  color: var(--background-color);
  border: none;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

/* Image Gallery Section */
.image-gallery {
  padding: 5rem 0;
  background: var(--background-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, max-content));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: auto;
  min-height: 100px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  padding: 1.75rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background-color);
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  line-height: 1.4;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  background: var(--secondary-color);
}

.gallery-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background-dark);
  transition: background 0.4s ease;
}

.gallery-placeholder span {
  position: relative;
  z-index: 1;
}

/* Gradient Variations */
.gradient-1 {
  background: var(--background-dark);
}

.gradient-2 {
  background: var(--background-dark);
}

.gradient-3 {
  background: var(--background-dark);
}

.gradient-4 {
  background: var(--background-dark);
}

.gradient-5 {
  background: var(--background-dark);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-placeholder::before {
  background: rgba(0, 0, 0, 0.05);
}

/* Home Visit Note */
.home-visit-note {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem 2.5rem;
  background: var(--primary-color);
  border: 3px solid var(--primary-color);
  border-radius: 16px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 25px rgba(76, 91, 157, 0.2);
  position: relative;
  animation: pulseAttention 3s ease-in-out infinite;
}

.home-visit-note::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--primary-color);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
}

.note-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  animation: bounceIcon 2s ease-in-out infinite;
}

.home-visit-note p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent-color);
  line-height: 1.6;
}

.home-visit-note strong {
  font-weight: 700;
  font-size: 1.3rem;
  display: inline-block;
  position: relative;
}

@keyframes pulseAttention {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes bounceIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Section Divider */
.section-divider {
  position: relative;
  height: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  margin-top: -40px;
  margin-bottom: 20px;
}

.divider-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(74, 108, 247, 0.3);
  position: relative;
  border: 3px solid white;
}

.divider-logo-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

/* Team Preview Section */
.team-preview {
  padding: 0;
  background: white;
}

.team-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.team-content {
  background: var(--secondary-color);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-label {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.team-title {
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.team-description {
  font-size: 1.1rem;
  color: white;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.team-description strong {
  font-weight: 700;
  color: white;
}

.team-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.team-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.team-image {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
}

.team-image-placeholder {
  width: 100%;
  min-height: 500px;
  aspect-ratio: 16 / 10;
  position: relative;
}

.image-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(103, 128, 254, 0.1) 0%, transparent 50%);
}

/* Photo Gallery Preview Section */
.photo-gallery {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #f8fafc 0%, var(--background-color) 100%);
}

.gallery-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: #64748b;
  margin-top: -1rem;
  margin-bottom: 3rem;
  font-weight: 400;
}

.photo-gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(74, 108, 247, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  aspect-ratio: 4/3;
  text-decoration: none;
}

.photo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.photo-item:hover::before {
  opacity: 0.15;
}

.photo-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(74, 108, 247, 0.2);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.photo-item:hover img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.7) 50%, transparent 100%);
  padding: 2.5rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.photo-item:hover .photo-overlay {
  transform: translateY(0);
}

.overlay-text {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-cta-button {
  text-align: center;
  margin-top: 3rem;
}

.gallery-cta-button .btn {
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(74, 108, 247, 0.25);
  transition: all 0.3s ease;
}

.gallery-cta-button .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 108, 247, 0.35);
}

/* Responsive for Photo Gallery Preview */
@media (max-width: 968px) {
  .photo-gallery-preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .photo-gallery-preview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .photo-item {
    aspect-ratio: 1/1;
  }
}


/* Therapy Add-ons Section */
.therapy-addons {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.addons-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 3rem;
  font-weight: 500;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.addon-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.addon-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(74, 108, 247, 0.2);
  border-color: var(--primary-color);
}

.addon-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.addon-card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.addon-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  text-decoration: none;
}

.addon-card * {
  text-decoration: none !important;
  color: inherit;
}

.addon-btn {
  background: var(--primary-color);
  color: #ffffff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.addon-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease;
  position: relative;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  padding: 2rem 2.5rem;
  margin: 0;
  border-radius: 16px 16px 0 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.modal-body {
  padding: 2.5rem;
  line-height: 1.7;
  color: var(--text-color);
}

.modal-body p {
  margin-bottom: 1.2rem;
}

.modal-body strong {
  color: var(--primary-color);
  font-size: 1.1rem;
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
}

.modal-close {
  color: #ffffff;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #F1F5F9;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
  .hero-container,
  .team-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title,
  .team-title {
    font-size: 2.5rem;
  }

  .hero-image-wrapper {
    min-height: 400px;
    aspect-ratio: 16 / 10;
  }

  .team-image-placeholder {
    min-height: 450px;
    aspect-ratio: 1 / 1;
  }

  .gallery-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .addons-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .photo-tall {
    grid-row: span 1;
  }

  .photo-wide {
    grid-column: span 1;
  }

  .photo-item img {
    object-position: center;
  }

  .photo-item:hover img {
    transform: scale(1.03);
  }

  .team-content {
    padding: 4rem 2rem;
  }

  .team-description {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .hero,
  .team-content {
    padding: 4rem 0 3rem;
  }

  .hero-title,
  .team-title,
  .cta-content h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-image-wrapper {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .team-image-placeholder {
    min-height: 350px;
    aspect-ratio: 4 / 5;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    min-height: 100px;
  }

  .gallery-placeholder {
    padding: 1.5rem 2rem;
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .therapy-addons {
    padding: 3rem 0;
  }

  .addons-intro {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .addon-card {
    padding: 2rem 1.5rem;
  }

  .addon-card h3 {
    font-size: 1.2rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-content h2 {
    font-size: 1.4rem;
    padding: 1.5rem 2rem;
  }

  .modal-body {
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1.05rem;
  }

  .mission-text {
    font-size: 1.15rem;
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

  .home-visit-note p {
    font-size: 1.05rem;
  }

  .home-visit-note strong {
    font-size: 1.15rem;
  }

  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .photo-tall {
    grid-row: span 1;
  }

  .photo-wide {
    grid-column: span 1;
  }

  .photo-item img {
    object-position: center;
  }

  .photo-item:hover img {
    transform: scale(1.02);
  }

  .gallery-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .overlay-text {
    font-size: 1rem;
  }

  .team-content {
    padding: 3rem 1.5rem;
  }

  .team-description {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title,
  .team-title {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .mission-text {
    font-size: 1rem;
  }

  .service-card h3 {
    font-size: 1.35rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .home-visit-note p {
    font-size: 0.95rem;
  }

  .home-visit-note strong {
    font-size: 1rem;
  }

  .addon-card h3 {
    font-size: 1.15rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .modal-content h2 {
    font-size: 1.25rem;
    padding: 1.25rem 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
    font-size: 0.85rem;
  }

  .modal-close {
    right: 1rem;
    top: 1rem;
    width: 35px;
    height: 35px;
    font-size: 2rem;
  }

  .hero-image-wrapper {
    min-height: 320px;
    aspect-ratio: 1 / 1;
  }

  .section-divider {
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  .divider-logo {
    width: 60px;
    height: 60px;
  }

  .team-image-placeholder {
    min-height: 350px;
    aspect-ratio: 16 / 10;
  }

  .photo-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .photo-tall,
  .photo-wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .photo-item img {
    object-position: center;
  }

  .photo-item:hover img {
    transform: scale(1.01);
  }

  .gallery-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .overlay-text {
    font-size: 0.95rem;
  }

  .photo-overlay {
    padding: 2rem 1.25rem 1.25rem;
  }

  .team-content {
    padding: 2.5rem 1rem;
  }

  .team-description {
    padding: 0 2rem;
  }
}
