/*
Theme Name: Imagon Child
Theme URI: https://imagon.themeht.com/
Description: Child theme for Imagon - Radiology and Imaging WordPress Theme
Author: Rancho Open MRI
Author URI: https://imagon.themeht.com/
Template: imagon
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: imagon-child
*/

/* ==========================================================================
   Location Selector Dropdown
   ========================================================================== */

.location-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.location-selector-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--themeht-typography-secondary-font-family);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--themeht-secondary-color);
    padding: 10px 0;
    white-space: nowrap;
}

.location-selector-toggle .bi-telephone-fill {
    font-size: 16px;
    color: var(--themeht-primary-color);
}

.location-selector-label {
    color: var(--themeht-primary-color);
}

.location-selector-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--themeht-primary-color);
}

.location-selector.open .location-selector-arrow {
    transform: rotate(180deg);
}

.location-selector-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 320px;
    margin: 5px 0 0;
    padding: 8px 0;
    list-style: none;
    background-color: var(--themeht-white-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.location-selector.open .location-selector-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.location-selector-item a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--themeht-secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--themeht-typography-body-font-family);
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.location-selector-item a:hover {
    background-color: var(--themeht-light-color);
    color: var(--themeht-primary-color);
}

.location-selector-item .loc-name {
    font-weight: 600;
}

.location-selector-item .loc-sep {
    margin: 0 2px;
    color: var(--themeht-body-color);
}

.location-selector-item .loc-phone {
    color: var(--themeht-body-color);
}

.location-selector-item a:hover .loc-phone {
    color: var(--themeht-primary-color);
}

/* Header top bar variant */
.header-top .location-selector-toggle {
    color: var(--themeht-white-color);
}

.header-top .location-selector-label {
    color: var(--themeht-white-color);
}

.header-top .location-selector-toggle .bi-telephone-fill {
    color: var(--themeht-white-color);
}

.header-top .location-selector-arrow {
    color: var(--themeht-white-color);
}

/* ==========================================================================
   Prescription Form download link (header bar)
   ========================================================================== */

.prescription-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 22px;
    font-family: var(--themeht-typography-secondary-font-family);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--themeht-secondary-color);
    transition: color 0.3s ease;
}

.prescription-link .bi {
    font-size: 16px;
    color: var(--themeht-primary-color);
}

.prescription-link:hover,
.prescription-link:focus {
    color: var(--themeht-primary-color);
}

/* Header Style 1: link sits on the dark top bar, so default to white. */
.header-top .prescription-link {
    color: var(--themeht-white-color);
}

.header-top .prescription-link:hover,
.header-top .prescription-link:focus {
    color: var(--themeht-primary-color);
}

/* Contact-page / in-content download button uses the theme button styles;
   just give it a little breathing room. */
.prescription-form-cta {
    margin: 20px 0;
}

.prescription-form-cta .bi {
    margin-right: 6px;
}

@media (max-width: 991px) {
    /* Free up horizontal space in the condensed header — the link is also in
       the nav menu and footer, so hiding it in the bar here is non-destructive. */
    .prescription-link {
        margin-left: 14px;
    }
}

/* ==========================================================================
   Location Reviews Tabs
   ========================================================================== */

.loc-reviews {
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.loc-reviews-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.loc-reviews-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--themeht-typography-body-font-family);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.loc-reviews-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.loc-reviews-tab.active {
    background: var(--themeht-primary-color);
    border-color: var(--themeht-primary-color);
    color: #fff;
}

.loc-reviews-panel {
    display: none;
}

.loc-reviews-panel.active {
    display: block;
    animation: locReviewsFadeIn 0.4s ease;
}

@keyframes locReviewsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.loc-review-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.loc-review-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.loc-review-stars {
    margin-bottom: 16px;
    color: #fbbf24;
    font-size: 16px;
    display: flex;
    gap: 3px;
}

.loc-review-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.loc-review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.loc-review-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.loc-review-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.loc-reviews-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    padding: 40px 0;
}

/* Responsive */
@media (max-width: 991px) {
    .location-selector-menu {
        right: auto;
        left: 0;
        min-width: 280px;
    }

    .location-selector-item a {
        font-size: 13px;
        padding: 8px 15px;
    }

    .loc-reviews-tabs {
        gap: 6px;
    }

    .loc-reviews-tab {
        font-size: 12px;
        padding: 8px 14px;
    }

    .loc-reviews-grid {
        grid-template-columns: 1fr;
    }

    .loc-review-card {
        padding: 22px;
    }
}

/* ==========================================================================
   Reduce page-title hero height
   ========================================================================== */

.page-title {
    padding-bottom: 60px !important;
}

.page-title h1 {
    font-size: 36px !important;
    line-height: 44px !important;
}

@media (max-width: 991px) {
    .page-title {
        padding-bottom: 40px !important;
    }

    .page-title h1 {
        font-size: 28px !important;
        line-height: 36px !important;
    }
}

/* ==========================================================================
   Footer Tagline Width
   ========================================================================== */

.primary-footer > .container > .row:first-child > .col-lg-4 {
    flex: 0 0 66.666% !important;
    max-width: 66.666% !important;
}

.primary-footer > .container > .row:first-child > .col-lg-5 {
    display: none;
}

/* ==========================================================================
   Footer Locations List
   ========================================================================== */

.footer-locations-list.media-icon li {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 14px !important;
    line-height: 1.4;
}

.footer-locations-list li > a {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

.footer-loc-phone {
    margin-top: 2px;
}

.footer-loc-phone a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px;
    text-decoration: none;
}

.footer-loc-phone a:hover {
    color: var(--themeht-primary-color) !important;
}

/* ==========================================================================
   Hero section — break out of .container to match header full width
   ========================================================================== */

.elementor-element-5908f40 {
    width: calc(100vw - 80px) !important;
    max-width: calc(100vw - 80px) !important;
    margin-left: calc(-1 * (100vw - 80px - 100%) / 2) !important;
}

/* On mobile the 80px breakout gutters are wider than the standard page
   gutter — revert to the container width so the hero lines up with the
   other sections. */
@media (max-width: 767px) {
    .elementor-element-5908f40 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 70px;
}

@media (max-width: 767px) {
    .faq-columns {
        padding-top: 40px;
    }
}

.faq-columns > .col-lg-6 {
    padding: 0 15px;
}

@media (max-width: 991px) {
    .faq-columns > .col-lg-6 {
        margin-bottom: 20px;
    }
}

.faq-section-title {
    color: var(--themeht-secondary-color);
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--themeht-primary-color);
}

.faq-accordion {
    margin-bottom: 70px;
}

.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--themeht-typography-secondary-font-family);
    font-size: 20px;
    font-weight: 600;
    color: var(--themeht-secondary-color);
    text-align: left;
    gap: 16px;
    transition: color 0.2s ease;
}

.faq-item.active .faq-question {
    color: var(--themeht-primary-color);
}

.faq-question i {
    font-size: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--themeht-body-color);
    font-size: 17px;
    line-height: 1.7;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .faq-question {
        font-size: 17px;
        padding: 16px 18px;
    }

    .faq-answer {
        padding: 0 18px 16px;
        font-size: 15px;
    }
}

/* ==========================================================================
   Service Page Fixes
   ========================================================================== */

.service-single .service-item .entry-content.mt-0 {
    margin-top: 30px !important;
}

.service-single .entry-content h3 {
    color: var(--themeht-primary-color);
}


/* ==========================================================================
   Navigation Menu Font Size
   ========================================================================== */

.main-nav ul li a {
    font-size: 16px !important;
}

/* ==========================================================================
   Compact Sticky Header
   ========================================================================== */

#header-wrap.fixed-header {
    padding: 8px 30px !important;
}

#header-wrap.fixed-header .navbar-brand img {
    max-height: 40px !important;
}

#header-wrap.fixed-header .main-nav ul li a {
    font-size: 14px !important;
}

/* ==========================================================================
   Navigation Submenu Spacing
   ========================================================================== */

.main-nav ul.sub-menu {
    top: 130% !important;
    white-space: nowrap !important;
    min-width: auto !important;
    width: auto !important;
}

.main-nav .sub-menu li a {
    white-space: nowrap !important;
}

@media (min-width: 1200px) {
    .main-nav ul li:hover > ul.sub-menu {
        top: 120% !important;
    }
}

/* ==========================================================================
   Location Archive Cards
   ========================================================================== */

.location-card.portfolio-item.style-2,
.location-card.portfolio-item.style-2:first-child,
.location-card.portfolio-item.style-2:last-child {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #fff !important;
    padding: 0 !important;
}

.location-card .portfolio-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.location-card .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.location-card .portfolio-desc {
    padding: 15px 20px 10px !important;
}

.location-card .portfolio-title h4 {
    font-size: 20px;
    margin-bottom: 0;
}

.location-card-details {
    padding: 0 20px 20px;
}

.location-card-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--themeht-body-color);
    line-height: 1.5;
}

.location-card-meta i {
    color: var(--themeht-primary-color);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.location-card-meta a {
    color: var(--themeht-body-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.location-card-meta a:hover {
    color: var(--themeht-primary-color);
}

.location-card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

a.location-svc-tag,
span.location-svc-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--themeht-primary-color);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

a.location-svc-tag:hover {
    background: var(--themeht-primary-color);
    color: #fff;
}

.location-card-btn.themeht-btn {
    margin-top: 16px;
}

.location-card-wrap {
    height: 100%;
}

/* ==========================================================================
   Location Single — Sidebar CTA
   ========================================================================== */

.portfolio-meta-cta {
    padding: 20px 40px 0;
    text-align: center;
}

.location-cta-btn.themeht-btn {
    display: inline-block;
    background: #fff !important;
    color: var(--themeht-primary-color) !important;
}

.location-cta-btn.themeht-btn:hover {
    background: var(--themeht-secondary-color) !important;
    color: #fff !important;
}

/* Location single — hero image + sidebar row */
.location-hero-image {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.location-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-sidebar-sticky {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-sidebar-sticky .portfolio-meta-info-in {
    flex: 1;
}

/* Remove the decorative SVG curves from sidebar when in this layout */
.location-sidebar-sticky .team-social-list {
    display: none;
}

@media (max-width: 991px) {
    .location-hero-image {
        margin-bottom: 20px;
        height: auto;
    }
}

/* Sidebar hours list */
.location-hours-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.hours-day {
    font-weight: 600;
    min-width: 40px;
}

/* Sidebar address text wrapping */
.portfolio-meta-info .title {
    word-break: break-word;
}

.portfolio-meta-info-in li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.portfolio-meta-info-in li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ==========================================================================
   Services Archive Cards
   ========================================================================== */

.service-card-wrap {
    height: 100%;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card-title a {
    color: var(--themeht-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-card-title a:hover {
    color: var(--themeht-primary-color);
}

.service-card-excerpt {
    font-size: 14px;
    color: var(--themeht-body-color);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-card-btn.themeht-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ── Map scroll fix ── */
/* Let page scroll over map; click overlay to interact */
.map-scroll-wrap {
    position: relative;
}
.map-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}
.map-scroll-wrap.map-active::after {
    display: none;
}

/* =====================================================
   Client feedback fixes (2026)
   ===================================================== */

/* ── "What Sets Us Apart": remove decorative arrow links ──
   The themeht feature-box style1 renders a .button-style-2 corner
   with a bi-arrow-right-short link pulled from btn_url. Client asked
   to remove the arrows entirely. */
.featured-item.style-1 .button-style-2 {
    display: none !important;
}

/* ── "What Sets Us Apart": align sub-sections vertically ──
   Make every feature card the same height and align content so the
   two rows of three line up consistently. */
.featured-item.style-1 {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.featured-item.style-1 .featured-desc {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
/* Equal-height columns within each feature row */
.featured-item.style-1 .featured-title h5 {
    min-height: 2.6em;
}

/* ── About Us page: fix boxes alignment ──
   Equalize the feature/value boxes so they don't stagger. */
.about-boxes .elementor-column,
.imagon-about .elementor-widget-feature {
    display: flex;
}
.imagon-about .featured-item,
.about-boxes .featured-item {
    height: 100%;
    width: 100%;
}

/* ── Service detail pages: "Available At These Locations" grid ── */
.service-locations {
    margin: 36px 0 10px;
}
.service-locations-title {
    margin-bottom: 18px;
}
.service-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.service-location-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 18px 20px;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-location-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.service-location-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--themeht-text-color);
    text-decoration: none;
    margin-bottom: 8px;
}
.service-location-name:hover {
    color: var(--themeht-primary-color);
}
.service-location-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--themeht-body-color);
    text-decoration: none;
}
.service-location-phone:hover {
    color: var(--themeht-primary-color);
}
.service-location-name i,
.service-location-phone i {
    color: var(--themeht-primary-color);
    font-size: 14px;
}

/* ------------------------------------------------------------------
   Homepage hero heading — responsive font size
   The theme only scales `.theme-title h2` on small screens; the hero
   uses a bare h2 (themeht-heading widget 0c8b79b) so it stayed at the
   desktop 48px and overflowed narrow viewports.
------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .elementor-element-0c8b79b h2 {
        font-size: 40px;
        line-height: 50px;
    }
}
@media (max-width: 767px) {
    .elementor-element-0c8b79b h2 {
        font-size: 30px;
        line-height: 40px;
    }
}

/* ==========================================================================
   Mobile spacing normalization (homepage)
   - The stretched sections (Trusted Imaging 40879f27, Our Locations
     59b477d, Contact 4e607266) go full-bleed on phones while every other
     section sits inside the 25px page gutter. Un-stretch them on mobile so
     all sections share the same gutter (!important beats the inline styles
     Elementor's stretch JS writes).
   - The theme's style-2 service card reserves 130px above the title at
     every breakpoint, which reads as a large empty gap on phones.
   ========================================================================== */
@media (max-width: 767px) {
    .elementor-element-40879f27,
    .elementor-element-59b477d,
    .elementor-element-4e607266 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: auto !important;
    }
    .service-item.style-2 .service-title {
        padding-top: 50px !important;
    }
}

/* Theme-demo collage (hotlinked knee X-ray, widget c61fd3d in column
   dad802c) overlaps its background when columns stack — hide it below
   desktop. */
@media (max-width: 1024px) {
    /* Elementor's .elementor-column{display:flex} loads after this sheet,
       so !important is required. */
    .elementor-element-dad802c {
        display: none !important;
    }
}

/* About Us section header (widget 690bad4) is left-aligned for the desktop
   two-column layout; center it on phones to match the other homepage
   section headers. The h6 pill is inline-flex, so text-align centers it. */
@media (max-width: 767px) {
    .elementor-element-690bad4 .theme-title {
        text-align: center;
    }
}

/* ==========================================================================
   Location pages — mobile fixes
   - Parent theme adds margin-top 60/70px to .portfolio-meta-info when
     columns stack, but our height:100% (desktop equal-height layout) pins
     the card to the column height, so the margin pushed it 60px past the
     column bottom, under the content heading. height:auto when stacked.
   - Content h2/h3 keep their 48px/46px desktop sizes on phones (theme only
     scales .theme-title h2); scale them down inside entry-content.
   ========================================================================== */
@media (max-width: 991px) {
    .location-sidebar-sticky {
        height: auto;
    }
}
@media (max-width: 767px) {
    .entry-content h2 {
        font-size: 30px;
        line-height: 38px;
    }
    .entry-content h3 {
        font-size: 24px;
        line-height: 32px;
    }
}

/* ==========================================================================
   Mobile menu — open immediately
   The theme choreographs the menu open: a full-screen primary-blue layer
   (.ht-mobile-menu-bg) sweeps in over 900ms, and the menu panel waits
   600ms (transition-delay) before sliding in. Remove the sweep and the
   delay so the panel opens right away.
   ========================================================================== */
@media (max-width: 1200px) {
    .ht-mobile-menu-bg {
        display: none !important;
    }
    .main-nav {
        transition: transform 300ms ease, opacity 300ms ease !important;
    }
    .main-nav.menu-active {
        transition-delay: 0ms !important;
    }
}

/* ==========================================================================
   Location page video hero (.page-title.location-video-hero)
   Video sits under the theme's ::before overlay; title stays on top.
   ========================================================================== */

.location-video-hero .location-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.location-video-hero:before {
    z-index: 1;
    opacity: 0.45; /* video needs a lighter wash than the static banner */
}

.location-video-hero .location-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 45%);
}

.location-video-hero .container {
    position: relative;
    z-index: 2;
}

/* Referral submission list (prescription page, step 3) */
.rx-submit-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.rx-submit-list li {
    display: grid;
    grid-template-columns: minmax(150px, 38%) 1fr;
    gap: 4px 20px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 15px;
}

.rx-submit-list li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rx-submit-list .rx-submit-loc {
    font-weight: 600;
    line-height: 1.45;
    color: var(--themeht-secondary-color);
}

.rx-submit-list .rx-submit-loc:hover {
    color: var(--themeht-primary-color);
}

.rx-submit-list .rx-submit-ways {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--themeht-body-color);
}

.rx-submit-list .rx-submit-way {
    display: flex;
    align-items: baseline;
    line-height: 1.45;
}

.rx-submit-list .rx-submit-label {
    flex: 0 0 46px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--themeht-primary-color);
}

.rx-submit-list .rx-submit-way a {
    color: var(--themeht-body-color);
    word-break: break-all;
}

.rx-submit-list .rx-submit-way a:hover {
    color: var(--themeht-primary-color);
}

@media (max-width: 575px) {
    .rx-submit-list li {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Homepage stats row (section 120b228e): 3 counters — keep "100000 +" on one
   line and scale digits to the narrower 3-up columns. */
.elementor-element-120b228e .counter-desc-warp {
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.elementor-element-120b228e .counter-desc-warp .count-number,
.elementor-element-120b228e .counter-desc-warp span {
    font-size: clamp(30px, 2.6vw, 44px);
    line-height: 1.15;
}

@media (max-width: 767px) {
    .elementor-element-120b228e .counter-desc-warp .count-number,
    .elementor-element-120b228e .counter-desc-warp span {
        font-size: 34px;
    }
}

/* ==========================================================================
   Location single — design pass (2026-08-01)
   Built on the theme palette: primary #027AAE (--themeht-primary-color),
   ink #05293A (darkened primary), light tint #ECF4FB, mono eyebrows. Signature: a "scan-line"
   gradient bar under section headings (an MRI sweep, quietly).
   ========================================================================== */

/* --- Section headings: ink color + scan-line bar --- */
.single-portfolio .entry-content h2,
.single-portfolio .entry-content h3 {
    color: #05293A;
    letter-spacing: -0.015em;
}

.single-portfolio .entry-content > h2::after,
.single-portfolio .entry-content > h3::after,
.single-portfolio .loc-video > h3::after,
.single-portfolio .location-google-reviews > h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 12px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--themeht-primary-color, #027AAE), #66BFE3 65%, rgba(102, 191, 227, 0));
}

/* Mono eyebrow (shared with the reviews band) */
.loc-eyebrow {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--themeht-primary-color, #027AAE);
    margin-bottom: 10px;
}

/* --- Sidebar info card: ink→blue gradient + faint imaging grid --- */
.single-portfolio .portfolio-meta-info {
    position: relative;
    overflow: hidden;
    background: linear-gradient(168deg, #05293A 0%, #045C83 58%, var(--themeht-primary-color, #027AAE) 100%);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(5, 41, 58, 0.22);
}

.single-portfolio .portfolio-meta-info::before {
    content: "";
    position: absolute;
    inset: 0;
    /* neutralize the parent's 0.8-opacity primary overlay */
    background-color: transparent;
    opacity: 1;
    border-radius: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.single-portfolio .portfolio-meta-info > * {
    position: relative; /* lift content above the grid watermark */
}

.loc-card-eyebrow {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.72);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.single-portfolio .portfolio-meta-info .sub-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.single-portfolio .hours-row {
    font-variant-numeric: tabular-nums;
}

.single-portfolio .location-cta-btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.single-portfolio .location-cta-btn:hover,
.single-portfolio .location-cta-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* --- Hero image: match the card's depth --- */
.single-portfolio .location-hero-image {
    box-shadow: 0 18px 44px rgba(5, 41, 58, 0.14);
}

/* --- Facility gallery: hover spine + gentle zoom --- */
.single-portfolio .imagon-gallery-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.single-portfolio .imagon-gallery-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--themeht-primary-color, #027AAE), #66BFE3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.single-portfolio .imagon-gallery-item:hover::after,
.single-portfolio .imagon-gallery-item:focus-visible::after {
    transform: scaleX(1);
}

.single-portfolio .imagon-gallery-img {
    display: block;
    transition: transform 0.45s ease;
}

.single-portfolio .imagon-gallery-item:hover .imagon-gallery-img,
.single-portfolio .imagon-gallery-item:focus-visible .imagon-gallery-img {
    transform: scale(1.04);
}

/* --- Reviews band: full-bleed tinted closing section --- */
.single-portfolio .location-google-reviews {
    position: relative;
    margin: 70px calc(50% - 50vw) 0;
    padding: 56px calc(50vw - 50%) 20px;
    background: linear-gradient(180deg, #ECF4FB 0%, rgba(236, 244, 251, 0) 88%);
    border-top: 1px solid rgba(2, 122, 174, 0.16);
}

/* The scan sweep: a slow highlight traveling the band's top rule */
.single-portfolio .location-google-reviews::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -160px;
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, rgba(2, 122, 174, 0), var(--themeht-primary-color, #027AAE), rgba(2, 122, 174, 0));
    animation: loc-scan 9s ease-in-out infinite;
}

@keyframes loc-scan {
    0%   { left: -160px; }
    55%  { left: 100%; }
    100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .single-portfolio .location-google-reviews::before {
        display: none;
    }
    .single-portfolio .imagon-gallery-img,
    .single-portfolio .location-cta-btn {
        transition: none;
    }
}

.single-portfolio .location-google-reviews > h2 {
    margin-top: 0;
}

/* Plugin cards default to #f5f5f5, which disappears against the band's
   sky tint (on the homepage's dark section the same gray reads as white).
   Make them true white here with a soft edge so they lift off the tint. */
.single-portfolio .location-google-reviews .rpi {
    --card-bg: #fff;
    --card-bg-color: #fff;
    --head-card-bg-color: #fff;
}

.single-portfolio .location-google-reviews .rpi-card-inner {
    border: 1px solid rgba(2, 122, 174, 0.10);
    box-shadow: 0 6px 18px rgba(5, 41, 58, 0.07);
}

.location-google-reviews-intro {
    margin-bottom: 30px;
    color: #5B6B7C;
    max-width: 640px;
}

/* --- Prev/next location nav: quiet cards --- */
.single-portfolio .post-navigation .nav-links a {
    border: 1px solid rgba(2, 122, 174, 0.18);
    border-radius: 12px;
    padding: 16px 20px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.single-portfolio .post-navigation .nav-links a:hover,
.single-portfolio .post-navigation .nav-links a:focus-visible {
    border-color: var(--themeht-primary-color, #027AAE);
    box-shadow: 0 8px 20px rgba(5, 41, 58, 0.10);
}

@media (max-width: 767px) {
    .single-portfolio .location-google-reviews {
        margin-top: 48px;
        padding-top: 40px;
    }
}
