/*
 * custom.css
 * Site-specific styles for drshaileshsharma.com
 * Extends the base Industrious template (main.css).
 */


/* ================================================
   Top Contact Bar
   ================================================ */

#header-contact {
    display: flex;
    align-items: center;
    height: 100%;
}

.hc-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1.25rem;
    height: 100%;
    line-height: 1;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: none !important;
    border-bottom: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    transition: color 0.2s;
}

.hc-link:last-child {
    border-right: none;
}

.hc-link:hover {
    color: #ffffff !important;
}

.hc-link .fa {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.hc-link .fa-whatsapp {
    font-size: 0.9rem;
    color: #25D366;
}

.hc-link:hover .fa-whatsapp {
    color: #1aab56;
}

@media screen and (max-width: 980px) {
    #header-contact {
        display: none;
    }
}


/* ================================================
   Banner
   ================================================ */

.banner-subtitle {
    font-size: 0.65em;
    font-weight: 400;
}


/* ================================================
   Map Embed
   ================================================ */

.google-maps {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}


/* ================================================
   Services (CTA Section)
   ================================================ */

#cta h3 {
    font-weight: 700;
}

#cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.services-tag-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
}

.services-tag-list li {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 0.4em 0.9em;
    font-size: 0.9em;
    font-weight: 600;
    color: #ffffff;
}


/* ================================================
   Video Cards
   ================================================ */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.video-card {
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.video-thumb-link {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.video-thumb-link img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.video-thumb-link:hover img {
    opacity: 0.8;
}

.video-thumb-link::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.video-thumb-link:hover::after {
    transform: translate(-50%, -50%) scale(1.15);
}

.video-caption {
    margin-top: 0.75rem;
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
}


/* ================================================
   Patient Reviews Carousel
   ================================================ */

.reviews-carousel-wrapper {
    overflow: hidden;
    margin-top: 1.5rem;
    margin-bottom: 4rem;
    -webkit-mask: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: scrollReviews 125s linear infinite;
}

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

@keyframes scrollReviews {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

.review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.88em;
    line-height: 1.55;
    color: #222;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.review-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4285F4;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-author {
    font-weight: 700;
    font-size: 0.88em;
    color: #111;
}

.review-date {
    font-size: 0.78em;
    color: #888;
    margin-top: 1px;
}

.reviews-loading {
    text-align: center;
    padding: 2rem;
    color: #777;
}

.reviews-google-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.9em;
}


/* ================================================
   Scroll to Top Button
   ================================================ */

#scroll-top-btn {
    position: fixed;
    bottom: 1.5rem; /* restore to 6.25rem when WhatsApp widget is re-enabled */
    right: 1.5rem;
    width: 2.25rem;
    height: 1.75rem;
    border-radius: 6px;
    background: #ffffff;
    color: #444;
    border: 1px solid rgba(0, 0, 0, 0.14);
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s, border-color 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-top-btn:hover {
    color: #111;
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}


/* ================================================
   Copyright Bar
   ================================================ */

#copyright {
    background-color: #0a0a0a;
    text-align: center;
    padding: 1.2rem 2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

#copyright a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.2s, border-color 0.2s;
}

#copyright a:hover {
    color: #ce1b28;
    border-bottom-color: #ce1b28;
}


/* ================================================
   WhatsApp Availability Widget
   ================================================ */

#wa-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

#wa-fab {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

#wa-fab:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

#wa-fab img {
    display: block;
    pointer-events: none;
}

#wa-popup {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1rem;
    width: 16rem;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.16);
    display: none;
    position: relative;
}

#wa-popup.wa-open {
    display: block;
}

#wa-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
}

#wa-close:hover {
    color: #333;
}

.wa-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.2rem;
}

.wa-subtitle {
    font-size: 0.78rem;
    color: #777;
    margin: 0 0 0.85rem;
}

#wa-date {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    color: #333;
}

#wa-send {
    display: block;
    width: 100%;
    background: #25D366;
    color: #fff !important;
    text-align: center;
    padding: 0.55rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: none !important;
    box-sizing: border-box;
    transition: background 0.2s;
}

#wa-send:hover {
    background: #1aab56;
}
