/* ==========================================================================
   SAGE Wellness – site-specific styles (loaded after theme.css)
   ========================================================================== */

/* ---------- Elementor widget basics (previously inlined per widget) ---------- */
.elementor-heading-title { padding: 0; margin: 0; line-height: 1.3; }
.elementor-widget-image { text-align: center; }
.elementor-widget-image img { vertical-align: middle; display: inline-block; }
img { max-width: 100%; height: auto; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--theme-color); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(153, 0, 153, .45); outline-offset: 2px;
}

/* ---------- Backgrounds that WordPress used to inject ---------- */
.breadcumb-wrapper {
  background-repeat: no-repeat; background-position: center center; background-size: cover;
  position: relative;
}
.breadcumb-wrapper::before {
  content: ""; position: absolute; inset: 0; background: rgba(0, 13, 68, .35); pointer-events: none;
}
.breadcumb-wrapper .container { position: relative; z-index: 1; }
.breadcumb-wrapper .breadcumb-title, .breadcumb-wrapper .breadcumb-menu li,
.breadcumb-wrapper .breadcumb-menu a { color: #fff; }
.prebuilt-foo {
  background-image: url("../img/site/footer-bg-1.jpg");
  background-repeat: no-repeat; background-position: center center; background-size: cover;
}

/* ---------- Active navigation ---------- */
.main-menu a[aria-current="page"], .th-mobile-menu a[aria-current="page"],
.widget_categories a[aria-current="page"] { color: var(--theme-color); }

/* ---------- Footer credit ---------- */
.copyright-wrap .credit-text { color: rgba(255, 255, 255, .8); font-size: 14px; margin: 4px 0 0; }
.copyright-wrap .credit-text a { color: #fff; font-weight: 600; }
.copyright-wrap .credit-text a:hover { color: #04ce78; }
.copyright-wrap .copyright-text { margin-bottom: 0; }

/* ---------- Scroll-to-top (now a real button) ---------- */
button.scroll-top { border: 0; padding: 0; background: transparent; bottom: 100px; }

/* ---------- Floating WhatsApp + mobile quick bar ---------- */
.sage-floating-whatsapp {
  position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px;
  background: #25D366; color: #fff !important; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .45); z-index: 9999;
  transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), background .3s;
  text-decoration: none !important;
}
.sage-floating-whatsapp:hover { transform: scale(1.1); background: #1eb954; color: #fff !important; }
.sage-floating-whatsapp::before {
  content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: #25D366; opacity: .7; animation: sagePulse 2s infinite; z-index: -1;
}
@keyframes sagePulse {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sage-floating-whatsapp::before { animation: none; }
}
.sage-mobile-bottom-bar { display: none; }
@media (max-width: 767px) {
  /* WhatsApp lives in the bottom bar on phones, so drop the duplicate floating button */
  .sage-floating-whatsapp { display: none; }
  button.scroll-top { display: none; }
  .sage-mobile-bottom-bar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid #eee7f1; box-shadow: 0 -8px 24px rgba(52, 16, 64, .08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .sage-mobile-bottom-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
    min-height: 50px; padding: 4px 2px; border-radius: 12px; text-decoration: none;
    color: #6b7280; font-family: var(--body-font); font-size: 11px; font-weight: 600; letter-spacing: .2px; line-height: 1.1;
    -webkit-tap-highlight-color: transparent; transition: color .2s ease, transform .15s ease;
  }
  .sage-mobile-bottom-bar a i { font-size: 19px; line-height: 1; }
  .sage-mobile-bottom-bar a:active { transform: scale(.94); }
  .sage-mobile-bottom-bar a:hover, .sage-mobile-bottom-bar a[aria-current="page"] { color: var(--theme-color); }
  .sage-mobile-bottom-bar a { position: relative; }
  .sage-mobile-bottom-bar a[aria-current="page"]::before {
    content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--theme-color);
  }
  .sage-mobile-bottom-bar a.wa-btn i { color: #25D366; }
  .sage-mobile-bottom-bar a.call-btn i { color: var(--theme-color2); }
  .sage-mobile-bottom-bar a.book-btn { color: var(--theme-color); }
  .sage-mobile-bottom-bar .book-icon {
    width: 54px; height: 54px; margin-top: -30px; border-radius: 50%; border: 4px solid #fff;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #b0189f 0%, #990099 45%, #692873 100%);
    box-shadow: 0 8px 18px rgba(153, 0, 153, .35);
  }
  .sage-mobile-bottom-bar .book-icon i { color: #fff; font-size: 20px; }
  .sage-mobile-bottom-bar a:focus-visible { outline: 2px solid var(--theme-color); outline-offset: 2px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- Program pages ---------- */
.program-heading { font-size: 28px; margin-bottom: 16px; }
.program-image img { width: 100%; border-radius: 20px; margin-bottom: 30px; }
.program-cta { gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.faq-heading { margin-bottom: 24px !important; font-weight: 600; }
.medical-note {
  margin-top: 30px; padding: 16px 20px; font-size: 14px; line-height: 1.6;
  background: var(--smoke-color); border-left: 4px solid var(--theme-color); border-radius: 8px;
}
.medical-note i { color: var(--theme-color); margin-right: 6px; }
.accordion-body p:last-child { margin-bottom: 0; }

/* ---------- Testimonials: initials instead of stock photos ---------- */
.testi-card .box-img.initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--theme-color); color: #fff; font-family: var(--title-font);
  font-weight: 700; font-size: 22px; border-radius: 50%; width: 60px; height: 60px; min-width: 60px;
}
.testimonial-note { text-align: center; font-size: 14px; margin: 30px 0 0; }

/* ---------- Booking & contact forms ---------- */
.form-messages.success { color: #1b5e20; background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 8px; padding: 12px 15px; }
.contact-card {
  background: #fff; padding: 35px 30px; border-radius: 16px; height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06); border: 1px solid #eef2f5;
}
.contact-card .icon {
  width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 20px;
  background: rgba(153, 0, 153, .1); color: var(--theme-color);
}
.contact-card h3 { font-size: 20px; margin-bottom: 12px; }
.contact-card p { margin-bottom: 8px; }
.contact-card a.link { color: var(--theme-color); font-weight: 600; }
.contact-form-box {
  background: #fff; padding: 40px; border-radius: 16px; height: 100%;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .07); border: 1px solid #eef2f5;
}
.contact-form-box .form-control, .contact-form-box .form-select { height: 52px; border-radius: 8px; }
.contact-form-box textarea.form-control { height: auto; }
.btn-whatsapp { background-color: #25D366 !important; }
.btn-whatsapp:hover { background-color: #1eb954 !important; }
.map-box { border-radius: 16px; overflow: hidden; height: 100%; min-height: 420px; border: 1px solid #eef2f5; }
.map-box iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 575px) { .contact-form-box { padding: 28px 20px; } }

/* ---------- Shop ---------- */
.th-product .product-img img { aspect-ratio: 294 / 312; object-fit: cover; width: 100%; }
.product-order-btn {
  background-color: #25D366; color: #fff !important; border: none; border-radius: 8px; padding: 8px 12px;
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; width: 100%; margin-top: 10px; text-decoration: none;
}
.product-order-btn:hover { background-color: #1eb954; }
.shop-note { margin-bottom: 30px; }

/* ---------- Blog ---------- */
.blog-content h2, .blog-content h3 { margin: 28px 0 14px; }
.blog-content .checklist li { margin-bottom: 10px; }
.recent-post .media-img img { width: 85px; height: 85px; object-fit: cover; }
.blog-card .blog-img img { aspect-ratio: 392 / 225; object-fit: cover; width: 100%; }
.author-widget-wrap .avater img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.lang-mr { font-size: 17px; line-height: 1.85; }

/* ---------- Team cards ---------- */
.team-card .box-img img { width: 100%; height: 380px; object-fit: cover; object-position: top; }
.team-card { max-width: 360px; margin: 0 auto; }
.team-card .box-img { border-radius: 12px; overflow: hidden; }
.team-card-full { max-width: 420px; text-align: center; }
.team-card-full .team-bio { margin-top: 14px; }

/* ==========================================================================
   UI fixes (Oct 2026)
   ========================================================================== */

/* Logo: larger so the clinic name is readable */
.header-layout1 .header-logo { padding-top: 10px; padding-bottom: 10px; }
.header-logo img, .mobile-logo img { height: 80px; width: auto; max-width: none; }
.sidemenu-wrapper .about-logo img { height: 72px; width: auto; }
.footer-wrapper .about-logo img { height: 80px; width: auto; max-width: 100%; }
@media (max-width: 575px) {
  .header-layout1 .header-logo { height: 76px; padding-top: 8px; padding-bottom: 8px; }
  .header-logo img { height: 60px; }
}

/* Mobile top bar: phone number instead of an empty "Follow Us On" row */
@media (max-width: 767px) {
  .header-top { padding: 6px 0; }
  .header-top .header-links li { margin-right: 0; font-size: 14px; }
}

/* "SAGE Cure Way": open card grows to fit its content instead of clipping */
@media (min-width: 768px) {
  .service-list-wrap { display: flex; flex-direction: column; }
  .service-list { height: auto; min-height: 483px; flex: 1 1 auto; }
  .service-list-wrap.active .box-content { max-height: none; }
}

/* Decorative lotus / pattern shapes overlap text on small screens */
@media (max-width: 1199px) {
  .shape-mockup-wrap .shape-mockup { display: none; }
}

/* Working hours rows: keep the time on one line */
.schedule-box .box-timing span, .tab-schedule .box-text span {
  white-space: nowrap; text-align: right; padding-left: 12px;
}

/* Service cards: readable label + same height */
.service-card { display: flex; flex-direction: column; align-items: center; height: 100%; }
.service-card .box-text {
  font-family: var(--title-font); font-size: 17px; font-weight: 600; line-height: 1.4;
  color: var(--title-color); min-height: 48px; margin-bottom: 20px;
}
.service-card .th-btn { margin-top: auto; }

/* Page banner: brand gradient (no generic stock image), compact on mobile */
.breadcumb-wrapper {
  background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .12) 0, transparent 45%),
                    linear-gradient(120deg, #4a1450 0%, #7a1a7c 55%, #990099 100%);
  padding: 90px 0;
}
.breadcumb-wrapper::before { background: none; }
.breadcumb-wrapper.has-photo::before { background: rgba(0, 13, 68, .4); }
@media (max-width: 991px) { .breadcumb-wrapper { padding: 70px 0; } }
@media (max-width: 767px) {
  .breadcumb-wrapper { padding: 44px 0; }
  .breadcumb-title { font-size: 30px; }
  .breadcumb-menu { margin-top: 12px; }
}

/* Shop: festive banners removed from images; 2 per row on phones */
.th-product .product-img img { aspect-ratio: 10 / 7; object-fit: cover; object-position: top; }
@media (max-width: 575px) {
  .th-product-box .product-content { padding: 14px 10px 16px; }
  .th-product .product-title { font-size: 15px; line-height: 1.35; }
  .th-product .product-price { font-size: 15px; }
  .product-order-btn { font-size: 13px; padding: 8px 6px; }
}
