/* Utility bar height; the desktop body offset uses it, so it lives on :root. */
:root {
    --pvg-utility-h: 38px;
}

/*
 * Price Vision Group header: utility bar, mega menus, sticky header and mobile drawer.
 * Layered on css/navigation.css (loads after it) and the Glacial Navigation Styling settings, which still supply the
 * --nav-* / --lvl-* / --mobile-* custom properties on #navigation. Markup and menu classes: see the
 * "Header navigation" section of includes/custom-filters.php.
 */

.pvg-header {
    --pvg-navy: var(--color-4, #0e3a5c);
    --pvg-midnight: var(--color-3, #071b2e);
    --pvg-magenta: var(--color-8, #c00078);
    --pvg-mist: var(--color-6, #c9dceb);
    --pvg-ice: #f3f7fb;
    --pvg-line: #e3eaf1;
    --pvg-sans: "Space Grotesk", sans-serif;
    --pvg-ease: cubic-bezier(.2, .7, .2, 1);

    top: 0; /* navigation.css sets top: auto, which would follow the body offset below */
    flex-direction: column;
    align-items: stretch;
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(7, 27, 46, .08);
    transition: background-color .3s ease, box-shadow .3s ease;
}

.pvg-header .nav-div {
    background-color: transparent;
    padding: 0 24px 0 14px;
    transition: min-height .3s var(--pvg-ease);
}

.pvg-header .header-logo {
    transition: height .3s var(--pvg-ease);
}

.pvg-header :focus-visible {
    outline: 2px solid var(--pvg-magenta) !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

/* ------------------------------------------------------------------ Utility bar */

.pvg-utility {
    display: grid;
    grid-template-rows: 1fr;
    background-color: var(--pvg-midnight);
    font-family: var(--pvg-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    transition: grid-template-rows .3s var(--pvg-ease), visibility 0s;
}

.pvg-utility__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 0;
    overflow: hidden;
    padding: 0 24px;
}

.pvg-utility__contact,
.pvg-utility__menu {
    display: flex;
    align-items: center;
    gap: 4px 24px;
    height: var(--pvg-utility-h);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pvg-utility a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pvg-mist);
    text-decoration: none;
    transition: color .2s ease;
}

.pvg-utility a:hover {
    color: #fff;
}

/* The phone number is the bar's main job: larger and brighter than the other utility links. */
.pvg-utility a[href^="tel:"] {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .01em;
}

.pvg-utility svg {
    flex: none;
    color: var(--color-5, #6fa8dc);
}

.pvg-utility__menu li + li {
    position: relative;
}

.pvg-utility__menu li + li::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 1px;
    height: 14px;
    margin-top: -7px;
    background: rgba(201, 220, 235, .3);
}

/* ------------------------------------------------------------------ Desktop */

@media (min-width: 992px) {

    /* Room for the utility bar above the 80px header the Webflow layout already clears. */
    body {
        padding-top: var(--pvg-utility-h);
    }

    /* Sticky: once scrolled (glacial.js adds .has-scrolled), the utility bar folds away, the bar slims down and
       turns to frosted glass. backdrop-filter stays desktop-only: it would trap the fixed mobile drawer. */
    .pvg-header.has-scrolled {
        background-color: rgba(255, 255, 255, .86);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
        backdrop-filter: saturate(180%) blur(16px);
        box-shadow: 0 10px 30px -12px rgba(7, 27, 46, .25);
    }

    .pvg-header.has-scrolled .pvg-utility {
        grid-template-rows: 0fr;
        visibility: hidden;
        transition: grid-template-rows .3s var(--pvg-ease), visibility 0s linear .3s;
    }

    .pvg-header.has-scrolled .nav-div {
        min-height: 64px;
    }

    .pvg-header.has-scrolled .header-logo {
        height: 40px;
    }

    .pvg-drawer-footer {
        display: none;
    }

    /* Top level: a magenta underline grows in on hover / open. */
    .pvg-header .gl-top-level > li {
        margin-right: 0;
    }

    .pvg-header .gl-top-level > li > a {
        position: relative;
        white-space: nowrap;
    }

    .pvg-header .gl-top-level > li > a::after {
        content: "";
        position: absolute;
        left: var(--nav-horz-pad);
        right: var(--nav-horz-pad);
        bottom: 2px;
        height: 2px;
        border-radius: 2px;
        background: var(--pvg-magenta);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s var(--pvg-ease);
    }

    .pvg-header .gl-top-level > li.menu-item-has-children > a::after {
        right: calc(var(--nav-horz-pad) + 17px);
    }

    .pvg-header .gl-top-level > li:hover > a::after,
    .pvg-header .gl-top-level > li.is-open > a::after,
    .pvg-header .gl-top-level > li.current-menu-item > a::after,
    .pvg-header .gl-top-level > li.current-menu-ancestor > a::after,
    .pvg-header .gl-top-level > li > a:focus-visible::after {
        transform: scaleX(1);
    }

    .pvg-header .gl-top-level > li.is-open > a {
        color: var(--top-level-color-hover);
    }

    /* The chevron sits in the link's right padding. In flow rather than absolutely positioned, because mega items
       are position: static (their panel spans the header) and an absolute chevron would leave the item. */
    .pvg-header .gl-top-level > li > .toggle-dropdown {
        position: static;
        flex: none;
        width: 12px;
        height: auto;
        margin: 0 var(--nav-horz-pad) 0 calc(-1 * (var(--nav-horz-pad) + 11px));
    }

    .pvg-header .gl-top-level > li > .toggle-dropdown svg {
        transition: transform .25s var(--pvg-ease);
    }

    .pvg-header .gl-top-level > li.is-open > .toggle-dropdown svg {
        transform: rotate(180deg);
    }

    /* Every top-level panel (dropdown or mega) fades and slides in. pvg-nav.js sets .is-open on hover (with a short
       intent delay); glacial.js sets .toggled-on from the keyboard toggle. Hidden panels use visibility, so their
       links leave the tab order and the accessibility tree. */
    .pvg-header .gl-top-level > li > .sub-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .2s ease, transform .2s var(--pvg-ease), visibility 0s linear .2s;
    }

    .pvg-header .gl-top-level > li.is-open > .sub-menu,
    .pvg-header .gl-top-level > li > .sub-menu.toggled-on,
    html:not(.pvg-nav-ready) .pvg-header .gl-top-level > li:hover > .sub-menu {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }

    /* Standard dropdown (e.g. Resources): a floating white card. */
    .pvg-header .gl-top-level > li:not(.pvg-mega) > .sub-menu {
        top: calc(100% + 6px);
        width: 260px;
        padding: 8px;
        border: 1px solid var(--pvg-line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 24px 48px -16px rgba(7, 27, 46, .28);
    }

    /* Bridge the gap so the pointer can travel from the link to the card. */
    .pvg-header .gl-top-level > li:not(.pvg-mega) > .sub-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        height: 14px;
    }

    .pvg-header .gl-top-level > li:not(.pvg-mega) > .sub-menu > li {
        margin: 0;
        border-radius: 8px;
    }

    .pvg-header .gl-top-level > li:not(.pvg-mega) > .sub-menu a {
        padding: 10px 12px;
        border-radius: 8px;
        font-family: var(--pvg-sans);
        font-size: 15.5px;
        line-height: 1.35;
    }

    /* ---------------- Mega panels */

    .pvg-header .gl-top-level > li.pvg-mega {
        position: static;
    }

    .pvg-header .gl-top-level > li.pvg-mega > .sub-menu {
        display: grid;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        gap: 8px 40px;
        align-items: start;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 36px max(32px, calc((100% - 1240px) / 2)) 40px;
        border-top: 1px solid var(--pvg-line);
        background: #fff;
        box-shadow: 0 32px 48px -24px rgba(7, 27, 46, .3);
        font-family: var(--pvg-sans);
    }

    .pvg-header .pvg-mega .sub-menu li,
    .pvg-header .pvg-mega .sub-menu li:hover {
        display: block;
        margin: 0;
        background: none;
    }

    .pvg-header .pvg-mega .sub-menu .toggle-dropdown {
        display: none;
    }

    .pvg-header .pvg-mega .sub-menu a {
        padding: 0;
        color: var(--pvg-navy);
        font-family: var(--pvg-sans);
        font-size: 15.5px;
        font-weight: 400;
        line-height: 1.35;
        text-transform: none;
        transition: color .15s ease;
    }

    .pvg-header .pvg-mega .sub-menu a[href]:hover {
        color: var(--pvg-magenta);
    }

    /* Group heading: the first-level link inside a mega panel (a page link, or a "#" label). */
    .pvg-header .pvg-mega--groups > .sub-menu > li:not(.pvg-mega-card) > a,
    .pvg-header .pvg-mega--doctors > .sub-menu > li:not(.pvg-mega-card) > a {
        display: block;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--pvg-line);
        color: var(--pvg-navy);
        font-size: 13px;
        font-weight: 600;
        /* .05em (was .08em) keeps "Modern Vision Correction" on one line in a 195px Services column. */
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    /* Nested lists sit open inside the panel. */
    .pvg-header .pvg-mega .gl-dropdown-2,
    .pvg-header .pvg-mega li:hover > .gl-dropdown-2 {
        display: grid;
        position: static;
        width: auto;
        gap: 4px;
        padding: 0;
        box-shadow: none;
        background: none;
        font-size: inherit;
    }

    .pvg-header .pvg-mega .gl-dropdown-2 a {
        display: block;
        padding: 5px 0;
        color: #33475b;
    }

    /* Services: four columns of grouped links, card on the right. */
    .pvg-header .pvg-mega--groups > .sub-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr)) 300px;
        row-gap: 32px;
    }

    .pvg-header .pvg-mega--groups .pvg-mega-card {
        grid-column: 5;
        grid-row: 1 / span 2;
    }

    /* Conditions: one list flowing over three columns. */
    .pvg-header .pvg-mega--list > .sub-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr)) 300px;
        row-gap: 0;
    }

    .pvg-header .pvg-mega--list > .sub-menu > li:not(.pvg-mega-card) > a {
        display: block;
        padding: 9px 0;
        border-bottom: 1px solid var(--pvg-line);
    }

    .pvg-header .pvg-mega--list .pvg-mega-card {
        grid-column: 4;
        grid-row: 1 / span 4;
    }

    /* Doctors: headshot + name, surgeons in one column, optometrists in two. */
    .pvg-header .pvg-mega--doctors > .sub-menu {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 300px;
    }

    .pvg-header .pvg-mega--doctors > .sub-menu > li:nth-child(2) > .gl-dropdown-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    .pvg-header .pvg-mega--doctors .gl-dropdown-2 a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 6px 0;
        color: var(--pvg-navy);
        font-weight: 500;
    }

    .pvg-doc-photo {
        flex: none;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        object-fit: cover;
        object-position: 50% 20%;
        background: var(--pvg-ice);
        box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--pvg-line);
        transition: box-shadow .2s ease;
    }

    .pvg-header .pvg-mega--doctors .gl-dropdown-2 a:hover .pvg-doc-photo {
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pvg-magenta);
    }

    /* Feature card (a menu item with the pvg-mega-card class). */
    .pvg-header .pvg-mega .pvg-mega-card {
        align-self: start;
    }

    .pvg-header .pvg-mega .pvg-mega-card > a.pvg-mega-card__link {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 10px;
        height: 100%;
        min-height: 190px;
        padding: 26px;
        border-radius: 18px;
        background: radial-gradient(120% 90% at 100% 0%, rgba(192, 0, 120, .45), transparent 60%),
        linear-gradient(160deg, var(--pvg-navy), var(--pvg-midnight));
        color: #fff;
        box-shadow: 0 18px 36px -18px rgba(7, 27, 46, .6);
        transition: transform .25s var(--pvg-ease), box-shadow .25s ease;
    }

    .pvg-header .pvg-mega .pvg-mega-card > a.pvg-mega-card__link:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 26px 44px -18px rgba(7, 27, 46, .7);
    }

    .pvg-mega-card__title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-family: var(--nav-font, serif);
        font-size: 24px;
        font-weight: 300;
        line-height: 1.15;
    }

    .pvg-mega-card__arrow {
        flex: none;
        width: 36px;
        height: 36px;
        padding: 9px;
        border-radius: 50%;
        background: var(--pvg-magenta);
        transition: transform .25s var(--pvg-ease);
    }

    .pvg-mega-card__link:hover .pvg-mega-card__arrow {
        transform: translateX(3px);
    }

    .pvg-mega-card__text {
        color: var(--pvg-mist);
        font-size: 15px;
        line-height: 1.5;
    }
}

/* Narrow desktops: tighten so the bar fits on one line before the mobile menu takes over.
   Upper bounds were raised when About Us became a sixth top-level item (2026-11-12). */
@media (min-width: 992px) and (max-width: 1399px) {
    .pvg-header .header-logo {
        height: 40px;
    }

    .pvg-header #navigation {
        --nav-horz-pad: 9px;
        --nav-font-size: 16px;
    }

    .pvg-header .nav-buttons .button.c-12 {
        padding: .7rem 1rem;
        font-size: .85em;
    }

    .pvg-header .pvg-mega--groups > .sub-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr)) 240px;
        column-gap: 28px;
    }

    .pvg-header .pvg-mega--list > .sub-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr)) 240px;
    }

    .pvg-header .pvg-mega--doctors > .sub-menu {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 240px;
    }
}

/* Smallest desktops (992–1179px): the menu must stay on one row, or the taller header covers page titles. */
@media (min-width: 992px) and (max-width: 1179px) {
    .pvg-header .nav-div {
        padding-right: 16px;
    }

    .pvg-header .header-logo {
        height: 32px;
    }

    .pvg-header #navigation {
        --nav-horz-pad: 5px;
        --nav-font-size: 14px;
    }

    .pvg-header .nav-buttons .button.c-12 {
        padding: .6rem .85rem;
        font-size: .8em;
    }
}

@media (min-width: 992px) {
    .pvg-header #navigation > ul {
        flex-wrap: nowrap;
    }

    /* Keep "Request an Appointment" on one line; the menu tiers above leave room for it. */
    .pvg-header .nav-buttons .button.c-12 {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ------------------------------------------------------------------ Mobile drawer (webflow.js w-nav, over-right) */

@media (max-width: 991px) {
    .pvg-utility {
        display: none;
    }

    .pvg-header .nav-div {
        padding-right: 12px;
    }

    .pvg-header .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        min-height: 48px;
        margin-left: 8px;
        padding: 10px;
        border-radius: 12px;
        color: var(--pvg-navy);
        transition: background-color .2s ease, color .2s ease;
    }

    .pvg-header .menu-button.w--open {
        background-color: var(--pvg-navy);
        color: #fff;
    }

    /* The drawer: below the header (glacial.js sets its top), full height, its own scroll. */
    /* webflow.js puts the open menu inside .w-nav-overlay and, for the over-right animation, writes an inline height
       equal to the whole page. Fixed + bottom: 0 keeps the drawer to the viewport so it scrolls on its own. */
    .pvg-header .w-nav-overlay #navigation[data-nav-menu-open] {
        display: flex !important; /* components.css forces [data-nav-menu-open] to block !important */
        position: fixed;
        height: auto !important;
        align-items: stretch; /* webflow.css .nav-menu centres its children */
    }

    .pvg-header #navigation {
        flex-direction: column;
        bottom: 0;
        right: 0;
        left: auto;
        width: min(440px, 100%);
        height: auto;
        padding: 6px 0 0;
        background: #fff;
        box-shadow: -24px 0 48px -24px rgba(7, 27, 46, .45);
        overscroll-behavior: contain;
    }

    .pvg-header #navigation > ul {
        flex: none;
    }

    .pvg-header .gl-top-level > li {
        border-bottom-color: var(--pvg-line);
    }

    .pvg-header .gl-top-level > li > a {
        padding: 16px 20px;
        font-size: 21px;
    }

    .pvg-header .site-navigation button.toggle-dropdown {
        width: 60px;
        min-height: 56px;
        border-left: 1px solid var(--pvg-line);
    }

    .pvg-header .site-navigation .toggle-dropdown svg {
        transition: transform .25s var(--pvg-ease);
    }

    /* Open sections. */
    .pvg-header .site-navigation .gl-dropdown-1.toggled-on {
        width: 100%;
        padding: 6px 0 12px;
        background: var(--pvg-ice);
    }

    .pvg-header .site-navigation .sub-menu a {
        padding: 11px 20px 11px 28px;
        font-family: var(--pvg-sans);
        font-size: 16.5px;
        font-weight: 400;
        line-height: 1.35;
    }

    /* navigation.css shows nested lists open inside an open section, so second-level items read as group
       headings (e.g. Services > Cornea) with their pages indented below. */
    .pvg-header .site-navigation .gl-dropdown-1 > li.menu-item-has-children {
        padding-top: 6px;
    }

    .pvg-header .site-navigation .gl-dropdown-1 > li.menu-item-has-children > a {
        font-weight: 600;
    }

    .pvg-header .site-navigation .gl-dropdown-1.toggled-on .gl-dropdown-2 {
        padding: 0 0 6px 14px;
    }

    .pvg-header .site-navigation .gl-dropdown-2 a {
        padding-top: 8px;
        padding-bottom: 8px;
        color: #33475b;
    }

    /* Label groups ("Surgeons", "Optometrists") stay open: they only organise the list. */

    /* Doctors' "Surgeons" / "Optometrists" labels; other "#" labels (Services > Retina) match the group headings. */
    .pvg-header .site-navigation .pvg-mega--doctors .pvg-nav-label {
        padding: 14px 20px 4px 28px;
        color: #4b6176;
        font-size: 12.5px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .pvg-header .pvg-mega--doctors .gl-dropdown-2 a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .pvg-doc-photo {
        flex: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        object-position: 50% 20%;
    }

    /* Feature cards become a highlighted row. */
    .pvg-header .site-navigation .pvg-mega-card {
        padding: 8px 16px 0;
    }

    .pvg-header .site-navigation .pvg-mega-card > a {
        padding: 14px 16px;
        border-radius: 12px;
        background: var(--pvg-navy);
        color: #fff;
    }

    .pvg-mega-card__title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-weight: 500;
    }

    .pvg-mega-card__arrow {
        flex: none;
        color: #fff;
    }

    .pvg-mega-card__text {
        display: none;
    }

    /* Bottom of the drawer: pinned buttons and patient links. */
    .pvg-drawer-footer {
        display: block;
        flex: none;
        margin-top: auto;
        padding: 14px 16px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--pvg-line);
        background: #fff;
        position: sticky;
        bottom: 0;
        font-family: var(--pvg-sans);
    }

    .pvg-drawer-footer__buttons {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .pvg-nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 12px 20px;
        border: 1px solid var(--pvg-navy);
        border-radius: 50rem;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
    }

    .pvg-header .site-navigation a.pvg-nav-btn {
        width: auto;
    }

    .pvg-header .site-navigation a.pvg-nav-btn--primary {
        background: var(--pvg-navy);
        color: #fff;
    }

    .pvg-header .site-navigation a.pvg-nav-btn--outline {
        background: #fff;
        color: var(--pvg-navy);
    }

    .pvg-drawer-footer__menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 4px;
        margin: 6px 0 0;
        padding: 0;
        list-style: none;
    }

    .pvg-header .site-navigation .pvg-drawer-footer__menu li {
        width: auto;
        border: 0;
    }

    .pvg-header .site-navigation .pvg-drawer-footer__menu a {
        padding: 8px 10px;
        color: #4b6176;
        font-size: 14.5px;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    /* Dim the page behind the drawer; webflow.js closes the menu on an outside click. */
    html.pvg-nav-open,
    html.pvg-nav-open body {
        overflow: hidden;
    }

    html.pvg-nav-open body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(7, 27, 46, .45);
    }
}

.pvg-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    /* The drawer carries the appointment button on phones. */
    .pvg-header .nav-buttons {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pvg-header,
    .pvg-header *,
    .pvg-header *::before,
    .pvg-header *::after {
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* ------------------------------------------------------------------ Back to top (footer.php #topBtn)
   glacial.js shows it on phones after 400px of scroll with jQuery show(), which sets display: inline; as a fixed
   element it is laid out as a block anyway, so the icon is centred with padding rather than flex. */
.top-floating-button {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    padding: 13px; /* 48 - 2 × 1px border - 20px icon = 26 */
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background-color: var(--color-4, #0e3a5c);
    color: #fff;
    line-height: 0;
    opacity: 1 !important; /* style.css forces .7 !important, which washes the navy out over photos */
    box-shadow: 0 10px 24px -8px rgba(7, 27, 46, .55);
    transition: background-color .2s ease, transform .2s ease;
}

.top-floating-button svg {
    display: block;
    width: 20px;
    height: 20px;
}

.top-floating-button:hover {
    background-color: var(--color-8, #c00078);
    color: #fff;
    transform: translateY(-2px);
}

.top-floating-button:focus-visible {
    outline: 2px solid var(--color-8, #c00078);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .top-floating-button {
        transition: none;
    }

    .top-floating-button:hover {
        transform: none;
    }
}

/* Footer stacking: webflow.css gives .lynx-footer-dark z-index 5000, which paints it over the
   fixed header (1000), so a dropdown opened at the bottom of a page was cut off by the footer.
   It also hid the back-to-top button and the mobile-menu overlay (999). Keep the footer's own
   stacking context but put it below everything fixed. */
.lynx-footer-dark {
    z-index: 1;
}

/* Footer "Request an Appointment" button: it has no .btn-bg layer or Webflow interaction like the
   other .button.c-12 buttons, so it had no hover at all. Same navy texture they reveal on hover. */
.pvg-footer-btn {
    transition: background-color .3s ease;
}

.button.c-12.pvg-footer-btn:hover,
.button.c-12.pvg-footer-btn:focus-visible {
    background-color: #132d52;
    background-image: url('../images/sq-bg.jpg');
    background-size: cover;
    color: #fff;
}

.pvg-footer-btn .btn-icon-arrow {
    transition: transform .3s ease;
}

.pvg-footer-btn:hover .btn-icon-arrow {
    transform: translateX(4px);
}

/* Label-only top-level item ("#" in the menu, e.g. Reviews): clicking it opens its dropdown (js/pvg-nav.js). */
.pvg-header .gl-top-level > li > .pvg-nav-label {
    cursor: pointer;
}

/* Inner-page title band (template-parts/header/page-title.php): webflow.css pads the top by a % of the screen width,
   and the band starts behind the fixed header, so the space above the breadcrumbs varied from 22px to 80px and was
   tight on phones (2026-11-13). Pad by the header's height plus a steady gap instead. Header heights: 60px under
   480px, 80px from 480px (on desktops the 38px utility bar above it sits in the page flow, so it's already cleared). */
section.ip-header {
    padding-top: calc(60px + max(56px, 5vw));
}

@media (min-width: 480px) {
    section.ip-header {
        padding-top: calc(80px + max(56px, 5vw));
    }
}

/* Footer on phones (stacked, under 768px): more room after the "Request an Appointment" heading + button before
   Quick Links, and a little more between the stacked groups (2026-11-13). */
@media (max-width: 767px) {
    .lynx-grid-footer-dark {
        grid-row-gap: 56px;
    }

    .lynx-grid-footer-dark > .lynx-block-footer:first-child {
        padding-bottom: 16px;
    }
}

/* Footer top padding: webflow.css gave 80px on desktop, 50px on phones and 0 on tablets (768-991px), where the
   "Request an Appointment" heading touched the top of the footer (2026-11-13). 72px on phones, 80px from 768px. */
.lynx-footer-dark .lynx-grid-footer-dark {
    padding-top: 80px;
}

@media (max-width: 767px) {
    .lynx-footer-dark .lynx-grid-footer-dark {
        padding-top: 72px;
    }
}

/* Footer bottom row on phones and tablets (under 992px): one column, with the search and social icons first, then
   the copyright / screen-reader / credit lines, then Back to Top (2026-11-13). Desktop keeps its two columns.
   display: contents lets the search/social/back-to-top wrapper's children be ordered alongside the text column. */
@media (max-width: 991px) {
    .lynx-block-footer-down {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .lynx-block-footer-down > div:last-child {
        display: contents;
    }

    .lynx-block-footer-down .search-2 {
        order: -2;
        width: 100%;
        max-width: 420px;
        margin: 0;
    }

    .lynx-block-footer-down .socials {
        order: -1;
        margin: 0;
    }

    .lynx-block-footer-down .lynx-link-footer-large-white {
        order: 1;
        align-self: flex-start;
    }
}
