﻿/* About Section */
.about-clinic {
  background-color: var(--color-white);
}

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

.about-card {
  text-align: center;
  padding: 40px 24px;
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.about-card i {
  color: var(--color-primary);
  margin-bottom: 24px;
  width: 48px;
  height: 48px;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Team Section */
.team {
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(178, 180, 209, 0.15) 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.team-member {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  align-items: stretch; /* Make items stretch to fill height */
}

.team-member:nth-child(even) {
  grid-template-columns: 2fr 1fr;
}

.team-member:nth-child(even) .team-photo {
  order: 2;
}

.team-member:nth-child(even) .team-info {
  order: 1;
}

/* Sarah Highlight Card */
.team-member-highlight {
  background: #B2B4D1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-member-highlight .team-info h3,
.team-member-highlight .team-info p,
.team-member-highlight .team-role {
  color: var(--color-white) !important;
}

.team-member-highlight .tag {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.team-photo {
  width: 100%;
  height: 100%;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.team-photo img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  box-shadow: var(--shadow-lg);
  animation: morph 12s ease-in-out infinite alternate-reverse;
}

.team-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-info h3 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.team-role {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.team-info p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tag {
  background-color: rgba(130, 193, 190, 0.1);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Services */
.services {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(178, 180, 209, 0.2);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-icon {
  background-color: var(--color-white);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Benefits / How it Works */
.how-it-works {
  background-color: var(--color-accent);
  color: var(--color-white);
  position: relative;
}

.how-it-works .section-title, 
.how-it-works .section-subtitle {
  color: var(--color-white);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  align-items: flex-start;
}

.timeline-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}

/* Testimonials Carousel */
.testimonials {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.testimo-carousel-wrapper {
  margin-top: 40px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 20px 0;
}

.testimo-track {
  display: inline-flex;
  gap: 32px;
  animation: scrollTestimo 40s linear infinite;
  padding-left: 32px;
}

.testimo-track:hover {
  animation-play-state: paused;
}

.testimo-card {
  width: 380px;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(130, 193, 190, 0.1);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.testimo-stars {
  color: #F59E0B;
  margin-bottom: 20px;
  display: flex;
  gap: 4px;
}

.testimo-stars svg { fill: currentColor; }
.testimo-stars i {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimo-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimo-author {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.testimo-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

@keyframes scrollTestimo {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 16px)); }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* FAQ */
.faq {
  background-color: var(--color-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--color-text);
  user-select: none;
}

.faq-question i {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 24px 24px;
  color: var(--color-text-light);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
  transition: transform 0.4s ease;
}

/* CTA & Footer */
.final-cta {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 100px 24px;
}

.final-cta h2 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.footer {
  background-color: var(--color-white);
  padding: 80px 0 40px;
}

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

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.footer-col p, .footer-col a {
  color: var(--color-text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-col p svg, .footer-col a svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--color-text-light);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .team-member {
    grid-template-columns: 1fr;
  }
  .team-member:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .team-member:nth-child(even) .team-photo, .team-photo {
    order: 1;
    min-height: 300px;
  }
  .team-member:nth-child(even) .team-info, .team-info {
    order: 2;
    padding: 32px 24px;
  }
  .final-cta h2 {
    font-size: 2rem;
  }
}

/* Location Section */
.location .section-title {
  margin-bottom: 40px;
}

.location .section-title h2 {
  font-size: 1.8rem;
}

.location .section-title p {
  font-size: 1rem;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-grid:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.location-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.location-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.location-icon {
  background: var(--color-light);
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.location-item:hover .location-icon {
  transform: scale(1.1);
  background: #B2B4D1;
  color: var(--color-white);
}

.location-item h4 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.location-item p {
  color: var(--color-text-light);
  line-height: 1.6;
}

.location-btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
}

.location-map {
  height: 100%;
  min-height: 400px;
  width: 100%;
  position: relative;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  transition: filter 0.3s ease;
}

.location-map iframe:hover {
  filter: brightness(0.95);
}

@media (max-width: 992px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-map {
    min-height: 300px;
  }
  .location-info {
    padding: 32px 24px;
  }
}

/* Space Section */
.space-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.space-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 12s ease-in-out infinite alternate;
  background-color: var(--color-white);
  padding: 8px; /* white inner border effect */
}

.space-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 12s ease-in-out infinite alternate-reverse;
  transition: transform 0.5s ease;
}

.space-item:hover img {
  transform: scale(1.1);
}

.space-item:nth-child(2n) {
  animation-delay: 1s;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
.space-item:nth-child(2n) img {
  animation-delay: 1s;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.space-item:nth-child(3n) {
  animation-delay: 2s;
  border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
}
.space-item:nth-child(3n) img {
  animation-delay: 2s;
  border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
}

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

@media (max-width: 576px) {
  .space-gallery {
    grid-template-columns: 1fr;
  }
}
