/*
 * Front page styles.
 *
 * These were seven inline <style> blocks inside front-page.php (14.6 KB re-sent
 * with every homepage request and never cacheable). They are moved here
 * verbatim except where noted; functions.php enqueues assets/css/*.css after
 * style.css, so the cascade order that these rules relied on is preserved.
 *
 * Removed on the way across:
 *   - .site-header rules — no element on this site carries that class (the
 *     header is .navbar), so they never matched. The JS that went with them
 *     threw a TypeError on every homepage load; both are gone.
 *   - .therapy-filters a rules — the filter buttons no longer wrap an <a>.
 */

/* ---------------- WhatsApp floating button ---------------- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulseGlow 2s infinite;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.9);
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 10px rgba(37, 211, 102, 0.6); }
  50%  { box-shadow: 0 0 25px rgba(37, 211, 102, 0.9); }
  100% { box-shadow: 0 0 10px rgba(37, 211, 102, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; transition: none; }
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 20px 80px;
    color: #000000;
    text-align: center;
}
.hero .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* On small screens: stack buttons vertically and center */
@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-buttons .btn {
    width: 80%;
    max-width: 300px;
  }
}

/* Hero stats. The numbers are now facts rather than template filler, so a
   couple of them are words ("Since 1912", "Tue-Sun") rather than digits, and
   the labels are longer. Keep all three on one row on a phone rather than
   letting them stack and push the booking buttons off the first screen. */
.stats div { min-width: 120px; }

@media (max-width: 576px) {
  .stats { gap: 16px 14px; }
  .stats div { min-width: 0; flex: 1 1 28%; font-size: 0.82rem; line-height: 1.35; }
  .stats strong { font-size: 1.15rem; }
}

/* ---------------- Therapy cards: horizontal scroll ---------------- */
.therapies-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.therapies-grid::-webkit-scrollbar { display: none; } /* hide scrollbar */
.therapy-card {
    flex: 0 0 300px; /* card width */
    scroll-snap-align: start;
    border-radius: 30px;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    padding: 20px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.therapy-card:nth-child(even) {
    background: linear-gradient(135deg, #d0f2f2 0%, #b2ebf2 100%);
}
.therapy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ---------------- Filter buttons ---------------- */
.therapy-filters {
    text-align: center;
    margin-bottom: 15px;
}
.filter-btn {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 25px;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: background 0.3s ease;
}
.filter-btn.active, .filter-btn:hover { background-color: #2f8d46; color: #fff; }

/* WhatsApp enquiry button, used alongside the booking CTA on each card. */
.btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn.whatsapp:hover {
  background: linear-gradient(135deg, #1faa53, #0e6f63);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}

/* ---------------- Other sections ---------------- */
.testimonials, .about { padding: 60px 20px; text-align: center; }
.testimonial-slider { display: flex; gap: 20px; overflow-x: auto; }
.testimonial-slider::-webkit-scrollbar { display: none; }

/* ---------------- Panchakarma section ---------------- */
.panchakarma-section {
    padding: 60px 20px;
    background-color: #f8fdf7; /* soft herbal background */
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

.panchakarma-section .section-title {
    font-size: 2rem;
    color: #1e3a1e;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.panchakarma-section .section-quote {
    font-style: italic;
    color: #3a553a;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.panchakarma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.panchakarma-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F6FFFA; /* mint cream */
    border: 1px solid #d0e6d0;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.panchakarma-item:hover {
    transform: scale(1.02);
}

.panchakarma-tile {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 300px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

/* The tile photo used to be a CSS background-image, which the browser fetches
   whether or not the tile is anywhere near the viewport. As a real <img> it
   carries loading="lazy" and stays unfetched until the visitor scrolls to it
   (DGA-097) — roughly 2 MB of the homepage. */
.panchakarma-tile .tile-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* Hover or focus on the tile or its label triggers the zoom */
.panchakarma-item:hover .panchakarma-tile,
.panchakarma-item:focus-within .panchakarma-tile {
    transform: scale(1.05);
}

/* Overlay on hover */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 66, 31, 0.7);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.panchakarma-item:hover .overlay,
.panchakarma-item:focus-within .overlay {
    opacity: 1;
}

/* Tile label — interactive, toggles the overlay on tap */
.tile-label {
    margin-top: 10px;
    padding: 6px 10px;
    background-color: #F6FFFA;
    border: 1px solid #cfe0cf;
    border-radius: 6px;
    font-weight: bold;
    color: #1e3a1e;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
}
.tile-label:hover {
    background-color: #e2f5e2;
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.overlay p {
    font-size: 1rem;
    margin-bottom: 15px;
}
.btn-book {
    display: inline-block;
    padding: 10px 20px;
    background-color: #d6f1d6;
    color: #1e3a1e;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}
.btn-book:hover {
    background-color: #1e3a1e;
    color: #fff;
}

.panchakarma-tile.active {
    transform: scale(1.05);
}
.panchakarma-tile.active .overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .panchakarma-tile {
        height: 250px;
    }
    .overlay h3 { font-size: 1.3rem; }
    .overlay p { font-size: 0.9rem; }
}

/* ---------------- Panchakarma life-cycle timeline ---------------- */
.healing-timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 50px auto;
    position: relative;
    flex-wrap: wrap;
}

.timeline-heading {
    text-align: center;
    font-size: 28px;
    color: #964B00;
    margin-bottom: 30px;
    font-weight: bold;
}

.healing-timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 5%;
    width: 90%;
    height: 4px;
    background-color: #4CAF50;
    z-index: 0;
}

.timeline-step {
    position: relative;
    text-align: center;
    width: 18%;
    z-index: 1;
    padding: 0 10px;
    transition: transform 0.3s;
}

.timeline-step:hover {
    transform: translateY(-10px);
}

/* Step number above the circle. This was an emoji (an oil barrel, a nauseated
   face and a toilet among them) rendered through s.w.org as seven external
   image requests. A numbered step is both defensible on a clinic page and one
   fewer third-party dependency. */
.timeline-step .step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.timeline-step .circle {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border: 4px solid #4CAF50;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-step:hover .circle {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.timeline-step .circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.timeline-step .circle::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #4CAF50;
}

.timeline-step:last-child .circle::after {
    content: '';
}

.timeline-step h3 {
    margin: 15px 0 5px;
    font-size: 16px;
    color: #333;
    transition: color 0.3s;
}

.timeline-step:hover h3 {
    color: #4CAF50;
}

.timeline-step p {
    font-size: 14px;
    color: #555;
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s, opacity 0.3s;
    opacity: 0.8;
}

.timeline-step:hover p {
    max-height: 200px;
    opacity: 1;
}

@media (max-width: 768px) {
    .healing-timeline-horizontal {
        flex-direction: column;
        align-items: center;
    }
    .timeline-step {
        width: 80%;
        margin-bottom: 40px;
    }
    .timeline-step .circle::after {
        display: none;
    }
    .healing-timeline-horizontal::before {
        display: none;
    }
}

/* ---------------- Testimonials ---------------- */
.testimonials {
  background-color: #f8fdf7;
  text-align: center;
  padding: 60px 20px;
  font-family: sans-serif;
}
.testimonials h2 {
  font-size: 2rem;
  color: #1e3a1e;
  margin-bottom: 30px;
}

.testimonial-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial-track-wrapper {
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-sizing: border-box;
  min-height: 260px;
  text-align: left;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 15px;
}

.testimonial-card h4 {
  font-weight: bold;
  color: #1e3a1e;
  text-align: right;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1e3a1e;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 5;
}
.slide-btn:hover {
  background: #4b6b4b;
}
.slide-btn.prev { left: 5px; }
.slide-btn.next { right: 5px; }

/* Link out to the clinic's own Google profile, so a reader can check the
   quotes against the source. */
.testimonial-source {
  margin-top: 24px;
  font-size: 0.95rem;
}
.testimonial-source a {
  color: #2f8d46;
  font-weight: 600;
}

@media (max-width: 992px) {
  .testimonial-card { flex: 0 0 calc(50% - 20px); }
}
@media (max-width: 600px) {
  .testimonial-card { flex: 0 0 100%; }
  .slide-btn { display: none; }
}

/* ---------------- Gallery + lightbox ---------------- */
.media-gallery { background-color: #f8fdf7; padding: 60px 20px; text-align: center; font-family: 'Poppins', sans-serif; }
.gallery-subtitle { margin-bottom: 40px; color:#5c715e; font-size:16px; }

.gallery-scroll { overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; width:100%; padding-bottom:10px; }
.gallery-track { display:flex; gap:20px; }
.gallery-item { min-width:250px; height:200px; border-radius:16px; overflow:hidden; flex-shrink:0; cursor:pointer; box-shadow:0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.gallery-item img { width:100%; height:100%; object-fit:cover; }
.gallery-item:hover { transform:scale(1.05); }

.lightbox { display:none; position:fixed; z-index:9999; left:0; top:0; width:100%; height:100%; background: rgba(0,0,0,0.9); padding-top:60px; }
.lightbox-img { display:block; margin:auto; max-width:90%; max-height:80%; z-index:1; position:relative; transition: opacity 0.3s ease; }
.close { position:absolute; top:20px; right:35px; color:#fff; font-size:40px; cursor:pointer; z-index:999; background:none; border:0; line-height:1; }

@media(max-width:768px){ .gallery-item{ min-width:180px; height:140px; } }
