/*
 * css/trivision-custom.css
 * Trivision Eye Hospital — site-wide custom CSS.
 *
 * WHY THIS FILE EXISTS
 * This block was previously a ~165-line inline <style> tag repeated in the
 * <head> of every single page (it lived in header.php). Inlining it meant it
 * could never be cached by the browser and bloated every HTML response by the
 * same ~5KB. Moving it to a real stylesheet lets it be cached once and reused
 * across all ~70 pages, with zero visual change.
 *
 * Section 1 is verbatim from the original inline block (FAQ, map, callout box,
 * gallery, facility card). Later sections are new additions for Milestone 1
 * (initials avatars, WhatsApp floating button) — each documented at point of
 * use.
 */

/* ==========================================================================
   1. Original inline styles (FAQ / Map / Callout / Gallery / Facility card)
   ========================================================================== */

/* Styles for new FAQ Section */
.faq-section {
    padding: 60px 0;
}
.faq-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.faq-item {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    position: relative;
    color: #333;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    color: #005dab;
}
.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    padding: 0 20px 20px;
    display: none;
    line-height: 1.6;
    color: #555;
    background: #fff;
}
.faq-answer p {
    margin-bottom: 10px;
}
.faq-answer ul {
    margin-left: 20px;
    margin-top: 10px;
}
.faq-answer li {
    margin-bottom: 8px;
}

/* Styles for new Map Section */
.map-section {
    padding: 60px 0;
}
.map-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Styles for new Callout Box */
.pq-callout-box {
    background-color: #f4f8ff;
    border: 1px solid #d6e6ff;
    border-left: 5px solid #005dab;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}
.pq-callout-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #005dab;
    margin-top: 0;
    margin-bottom: 10px;
}
.pq-callout-box p:last-child {
    margin-bottom: 0;
}

/* Styles for new Gallery Page */
.pq-gallery-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pq-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.pq-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.pq-gallery-info {
    padding: 15px 20px;
    text-align: center;
}
.pq-gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Styles for new Facility/Treatment Pillar Page */
.pq-facility-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 25px 30px;
    height: 100%;
    border-top: 4px solid #005dab;
}
.pq-facility-card .pq-facility-icon {
    font-size: 3rem;
    color: #005dab;
    margin-bottom: 15px;
}
.pq-facility-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.pq-facility-card ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}
.pq-facility-card ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}
.pq-facility-card ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}
.pq-facility-card ul li a:hover {
    color: #005dab;
}
.pq-facility-card ul li a strong {
    color: #005dab;
}
.pq-facility-card ul .inner-list {
    padding-left: 20px;
    margin-top: 10px;
    font-size: 0.95rem;
}

/* ==========================================================================
   2. Initials avatars for testimonials
   Replaces the single shared avatar.png used for all real patient reviews,
   which read as a stock/fabricated photo. A plain initials badge is honest
   and cannot be mistaken for a real patient's likeness. See
   includes/helpers.php: tv_initials_avatar().
   ========================================================================== */

.pq-initials-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* ==========================================================================
   3. Floating WhatsApp button
   The brief requires a persistent WhatsApp CTA; the site previously had no
   floating contact affordance at all.
   ========================================================================== */

.pq-whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 14px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pq-whatsapp-float:hover,
.pq-whatsapp-float:focus-visible {
    color: #fff;
    box-shadow: 0 8px 26px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.pq-whatsapp-float i {
    font-size: 1.6rem;
    line-height: 1;
}
.pq-whatsapp-float .pq-whatsapp-label {
    display: none;
    font-weight: 600;
    padding-right: 4px;
    white-space: nowrap;
}
@media (min-width: 992px) {
    .pq-whatsapp-float .pq-whatsapp-label {
        display: inline;
    }
}
/* Keep the WhatsApp button clear of the theme's own back-to-top button. */
#back-to-top {
    margin-bottom: 70px;
}

/* Accessible focus ring for the FAQ accordion + all interactive elements this
   file touches, matching WCAG 2.4.7 without altering the current design. */
.faq-question:focus-visible,
.pq-whatsapp-float:focus-visible,
.pq-reviewer-link:focus-visible {
    outline: 3px solid #005dab;
    outline-offset: 2px;
}
