/* SmileScience Components — buttons, header, nav, footer */

/* ─── Buttons ──────────────────────────────────────────── */

.lxf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6875rem 1.375rem;
    border-radius: var(--lxf-radius);
    font-family: var(--lxf-font-body) !important; /* beats Elementor Kit a{font} */
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity var(--lxf-transition), background-color var(--lxf-transition),
                transform var(--lxf-transition), box-shadow var(--lxf-transition);
    border: 2px solid transparent;
}

.lxf-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.lxf-btn:active {
    transform: translateY(0) scale(0.98);
    opacity: 1;
}

.lxf-btn--primary {
    background-color: var(--lxf-blue-action); /* #1d57d4 — 6.24:1 on white */
    color: var(--lxf-white) !important; /* beats Elementor Kit a{color} override */
    border-color: var(--lxf-blue-action);
    box-shadow: 0 2px 8px rgba(43, 111, 238, 0.30);
}

.lxf-btn--primary:hover {
    background-color: var(--lxf-blue-hover);
    border-color: var(--lxf-blue-hover);
    box-shadow: 0 4px 16px rgba(43, 111, 238, 0.40);
    opacity: 0.95;
}

.lxf-btn--phone {
    background-color: transparent;
    color: var(--lxf-navy);
    border-color: var(--lxf-navy);
}

.lxf-btn--phone:hover {
    background-color: var(--lxf-navy);
    color: var(--lxf-white);
    opacity: 1;
}

.lxf-btn--outline {
    background-color: transparent;
    color: var(--lxf-blue-text); /* #1d57d4 — 6.24:1 on white */
    border-color: var(--lxf-blue-text);
}

.lxf-btn--outline:hover {
    background-color: var(--lxf-blue-action);
    border-color: var(--lxf-blue-action);
    color: var(--lxf-white);
    opacity: 1;
}

/* On navy backgrounds */
.lxf-bg--navy .lxf-btn--phone {
    border-color: var(--lxf-white);
    color: var(--lxf-white);
}

.lxf-bg--navy .lxf-btn--phone:hover {
    background-color: var(--lxf-white);
    color: var(--lxf-navy);
}

/* ─── Logo text ─────────────────────────────────────────── */

.lxf-header__logo-text {
    font-family: var(--lxf-font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--lxf-navy);
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.01em;
}

.lxf-footer__logo-text {
    font-family: var(--lxf-font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--lxf-white);
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.01em;
}

/* ─── Site header (position: fixed is in base.css) ───────── */


/* ─── Tier 1: White logo bar ─────────────────────────────── */

.lxf-header__topbar {
    background-color: var(--lxf-white);
    height: var(--lxf-header-topbar-height);
    display: flex;
    align-items: center;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.lxf-header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.lxf-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.lxf-header__logo img {
    height: 44px;
    width: auto;
}

.lxf-header__topbar .lxf-header__phone {
    font-family: var(--lxf-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--lxf-navy);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--lxf-transition);
}

.lxf-header__topbar .lxf-header__phone:hover {
    color: var(--lxf-blue);
}

/* ─── Tier 2: Navy nav bar ───────────────────────────────── */

.lxf-header__nav {
    position: relative;
    background-color: var(--lxf-navy);
    height: var(--lxf-header-nav-height);
    display: flex;
    align-items: center;
    transition: background-color 0.25s ease;
}

.lxf-header__nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0;
}

/* ─── Primary nav list ───────────────────────────────────── */

.lxf-nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: var(--lxf-header-nav-height);
    flex: 1;
}

.lxf-nav__menu > .lxf-nav__item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* Higher specificity wins over Elementor Kit global link/font overrides */
.lxf-header__nav .lxf-nav__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding-inline: 0.875rem;
    font-family: var(--lxf-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color var(--lxf-transition), border-color var(--lxf-transition);
}

.lxf-header__nav .lxf-nav__link:hover,
.lxf-header__nav .lxf-nav__link--active {
    color: var(--lxf-white);
    border-bottom-color: var(--lxf-blue);
}

/* ─── Services / Resources mega menu ────────────────────── */

.lxf-header__nav .lxf-nav__link--has-mega {
    gap: 0.375rem;
}

.lxf-nav__chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lxf-mega-item:hover .lxf-nav__chevron,
.lxf-mega-item:focus-within .lxf-nav__chevron {
    transform: rotate(180deg);
}

.lxf-mega-item {
    position: static !important;
}

/* Slim single-column dropdown (Resources) */
.lxf-mega-item--slim {
    position: relative !important;
}

.lxf-mega-item--slim .lxf-mega-panel {
    width: 220px;
    left: 0;
    transform: none;
    padding: 1rem 1.25rem;
}

.lxf-mega-item--slim .lxf-mega-panel__inner {
    grid-template-columns: 1fr;
}

.lxf-mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1160px, 96vw);
    background: var(--lxf-white);
    border-top: 3px solid var(--lxf-blue);
    box-shadow: var(--lxf-shadow-lg);
    border-radius: 0 0 var(--lxf-radius-lg) var(--lxf-radius-lg);
    padding: 1.5rem 2rem 1rem;
    z-index: 1100;
}

.lxf-mega-item:hover .lxf-mega-panel,
.lxf-mega-item:focus-within .lxf-mega-panel {
    display: block;
}

.lxf-mega-panel__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* ─── Mega group (intent-based column) ──────────────────────────────── */

.lxf-mega-group {
    padding: 0 1.75rem 0 0;
    margin: 0 1.75rem 0 0;
    border-right: 1px solid var(--lxf-gray-200);
}

.lxf-mega-group:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: none;
}

.lxf-mega-group__label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lxf-blue);
    margin: 0 0 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lxf-blue);
}

.lxf-mega-group__cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1rem;
}

.lxf-mega-panel__footer {
    margin-block-start: 1rem;
    padding-block-start: 0.75rem;
    border-top: 1px solid var(--lxf-gray-200);
    text-align: right;
}

.lxf-mega-panel__all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lxf-blue);
    text-decoration: none;
}

.lxf-mega-panel__all-link:hover {
    text-decoration: underline;
}

.lxf-mega-col__heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lxf-navy);
    border-bottom: 2px solid var(--lxf-light-blue);
    padding-block-end: 0.5rem;
    margin-block-end: 0.625rem;
}

.lxf-mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lxf-mega-col a {
    display: block;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lxf-gray-700);
    text-decoration: none;
    border-radius: var(--lxf-radius);
    border-left: 2px solid transparent;
    transition: color var(--lxf-transition), background-color var(--lxf-transition),
                border-left-color var(--lxf-transition);
}

.lxf-mega-col a:hover {
    color: var(--lxf-blue);
    background-color: var(--lxf-light-blue);
    border-left-color: var(--lxf-blue);
}

.lxf-mega-col a.lxf-mega-col__all {
    margin-block-start: 0.5rem;
    font-weight: 700;
    color: var(--lxf-blue);
    font-size: 0.8125rem;
}

.lxf-mega-col a.lxf-mega-col__all:hover {
    text-decoration: underline;
    background-color: transparent;
    border-left-color: transparent;
}

/* ─── Emergency button (in nav bar) ─────────────────────── */

.lxf-nav__emergency {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #dc2626;
    color: var(--lxf-white) !important;
    border-bottom: none !important;
    border-radius: var(--lxf-radius);
    padding: 0.3rem 0.75rem !important;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    margin-inline: 0.25rem;
    height: auto !important;
    transition: background-color var(--lxf-transition) !important;
}

.lxf-nav__emergency:hover {
    background: #b91c1c !important;
    color: var(--lxf-white) !important;
    border-bottom-color: transparent !important;
}

/* ─── Cart icon + badge ─────────────────────────────────── */

.lxf-cart-icon {
    position:        relative;
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          36px;
    color:           inherit;
    text-decoration: none;
    flex-shrink:     0;
    border-radius:   var(--lxf-radius);
    transition:      opacity var(--lxf-transition);
    -webkit-tap-highlight-color: transparent;
}

.lxf-cart-icon:hover { opacity: 0.72; }

.lxf-cart-icon--desktop { color: var(--lxf-white); }

/* Mobile icon: hidden by default (desktop), shown only at ≤767px */
.lxf-cart-icon--mobile {
    color:   var(--lxf-navy);
    display: none;
}

@media (max-width: 767px) {
    .lxf-cart-icon--mobile { display: inline-flex; }
    /* Desktop icon hides automatically: its parent .lxf-header__actions is display:none at ≤767px */
}

.lxf-cart-badge {
    position:      absolute;
    top:           -3px;
    right:         -5px;
    min-width:     17px;
    height:        17px;
    padding:       0 4px;
    border-radius: 100px;
    background:    var(--lxf-blue);
    color:         var(--lxf-white);
    font-family:   var(--lxf-font-body);
    font-size:     0.5625rem;
    font-weight:   700;
    line-height:   17px;
    text-align:    center;
    pointer-events: none;
    animation:     lxf-badge-pop 260ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lxf-badge-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.lxf-cart-badge--pulse {
    animation: lxf-badge-pulse 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lxf-badge-pulse {
    0%   { transform: scale(1);    }
    45%  { transform: scale(1.35); }
    100% { transform: scale(1);    }
}

/* ─── Header actions (CTA area in nav bar) ───────────────── */

.lxf-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-inline-start: 0.5rem;
}

.lxf-header__cta.lxf-btn {
    font-size: 0.875rem;
    padding: 0.4375rem 1rem;
}

/* ─── Silo nav (inherits .lxf-nav__menu base, overrides below) ── */

.lxf-nav__menu--silo {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lxf-nav__menu--silo::-webkit-scrollbar { display: none; }

/* Tighten per-item padding so 5-6 children fit at laptop widths */
.lxf-header__nav .lxf-nav__menu--silo .lxf-nav__link {
    padding-inline: 0.6875rem;
}

.lxf-header__nav .lxf-nav__menu--silo .lxf-nav__back {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    height: 100%;
    padding-inline: 0.875rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    margin-inline-end: 0.25rem;
    transition: color var(--lxf-transition);
}

.lxf-header__nav .lxf-nav__menu--silo .lxf-nav__back:hover {
    color: rgba(255, 255, 255, 0.85);
}

.lxf-header__nav .lxf-nav__link--silo-root {
    font-weight: 700;
    color: var(--lxf-white) !important;
    background: transparent !important;
    letter-spacing: 0.01em;
}

/* ─── Silo nav scroll wrapper + arrow buttons ──────────────────────────────── */
.lxf-silo-scroll-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.lxf-silo-scroll-btn {
    display: none;
    position: absolute;
    top: 0; bottom: 0;
    width: 2.5rem;
    align-items: center; justify-content: center;
    border: none; cursor: pointer; z-index: 5;
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
    transition: color var(--lxf-transition);
}
.lxf-silo-scroll-btn--left {
    left: 0;
    background: linear-gradient(to right, var(--lxf-navy) 55%, transparent);
}
.lxf-silo-scroll-btn--right {
    right: 0;
    background: linear-gradient(to left, var(--lxf-navy) 55%, transparent);
}
.lxf-silo-scroll-btn:hover { color: #fff; }
.lxf-silo-scroll-btn--visible { display: flex; }

/* Back link fixed outside scroll area (moved by JS) */
.lxf-silo-back-fixed {
    display: flex; align-items: stretch;
    flex-shrink: 0; list-style: none; padding: 0; margin: 0;
}
.lxf-silo-back-fixed .lxf-nav__back {
    display: flex; align-items: center; gap: 0.375rem;
    height: 100%; padding-inline: 0.875rem 1rem;
    font-size: 0.8125rem; font-weight: 600;
    color: rgba(255, 255, 255, 0.5); text-decoration: none;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: color var(--lxf-transition);
}
.lxf-silo-back-fixed .lxf-nav__back:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* WP admin bar: push fixed header down when bar is present */
.admin-bar .lxf-site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .lxf-site-header {
        top: 46px;
    }
}

/* Subtle topbar shadow on scroll */
.lxf-site-header--scrolled .lxf-header__topbar {
    box-shadow: var(--lxf-shadow-sm);
}

/* ─── Hamburger (shown mobile only) ─────────────────────── */

.lxf-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.375rem;
    border-radius: var(--lxf-radius);
    cursor: pointer;
    background: none;
    border: none;
    flex-shrink: 0;
    margin-inline-start: 0.5rem;
}

.lxf-nav__hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--lxf-white);
    border-radius: 2px;
    transition: transform var(--lxf-transition), opacity var(--lxf-transition);
}

.lxf-nav__hamburger[aria-expanded="true"] .lxf-nav__hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.lxf-nav__hamburger[aria-expanded="true"] .lxf-nav__hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.lxf-nav__hamburger[aria-expanded="true"] .lxf-nav__hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile drawer ──────────────────────────────────────── */

.lxf-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--lxf-white);
    border-bottom: 2px solid var(--lxf-gray-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
    max-height: calc(100dvh - var(--lxf-header-total));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.lxf-mobile-menu[hidden] { display: none; }

.lxf-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.lxf-mobile-menu__list a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lxf-gray-900);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color var(--lxf-transition), background-color var(--lxf-transition),
                border-left-color var(--lxf-transition);
}

.lxf-mobile-menu__list a:hover {
    color: var(--lxf-blue);
    background-color: var(--lxf-gray-100);
    border-left-color: var(--lxf-blue);
}

.lxf-mobile-accordion__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-family: var(--lxf-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lxf-gray-900);
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: color var(--lxf-transition), background-color var(--lxf-transition);
}

.lxf-mobile-accordion__btn:hover {
    color: var(--lxf-blue);
    background-color: var(--lxf-gray-100);
}

.lxf-mobile-accordion__icon {
    display: inline-block;
    margin-inline-start: 0.375rem;
    font-size: 0.75rem;
    transition: transform var(--lxf-transition);
}
.lxf-mobile-accordion__icon::after { content: '▾'; }

.lxf-mobile-accordion__btn[aria-expanded="true"] .lxf-mobile-accordion__icon {
    transform: rotate(180deg);
}

.lxf-mobile-accordion__panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    background-color: var(--lxf-gray-100);
}

/* Panel expands when [hidden] is removed (JS removes the attribute) */
.lxf-mobile-accordion__panel:not([hidden]) {
    max-height: 1200px;
}

/* Sections inside the accordion panel */
.lxf-mobile-section {
    padding: 0.25rem 0;
}

.lxf-mobile-section__heading {
    padding: 0.625rem 1.5rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--lxf-gray-500);
    margin: 0;
}

.lxf-mobile-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lxf-mobile-section ul a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lxf-gray-700);
    text-decoration: none;
    transition: color var(--lxf-transition);
}

.lxf-mobile-section ul a:hover {
    color: var(--lxf-blue);
}

.lxf-mobile-menu__emergency {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #dc2626 !important;
    text-decoration: none;
    border-left: 3px solid #dc2626;
}

.lxf-mobile-menu__emergency:hover {
    background-color: #fef2f2;
}

/* ─── Mobile menu footer CTA bar ────────────────────────── */

.lxf-mobile-menu__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 56px;
    border-top: 1px solid var(--lxf-gray-200);
}

.lxf-mobile-menu__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lxf-navy);
    text-decoration: none;
    border-right: 1px solid var(--lxf-gray-200);
    transition: background-color var(--lxf-transition);
}

.lxf-mobile-menu__phone:hover {
    background-color: var(--lxf-gray-100);
}

.lxf-mobile-menu__footer .lxf-btn {
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.9375rem;
}

/* ─── Footer ────────────────────────────────────────────── */

.lxf-site-footer {
    background-color: var(--lxf-navy);
    color: var(--lxf-white);
    padding-block: 0;
    margin-top: auto;
}

/* ─── Tier 1: Accreditation logo strip ───────────────────────────────────── */

.lxf-footer__logo-strip {
    background: var(--lxf-white);
    padding-block: 1.5rem;
    border-bottom: 1px solid rgba(0, 37, 89, 0.08);
}

.lxf-footer__logo-strip .lxf-container {
    max-width: none;
    padding-inline: 3rem;
}

.lxf-footer__logos {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lxf-footer__logo-img {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6);
    transition: filter 0.2s ease;
    display: block;
}

.lxf-footer__logo-img:hover {
    filter: grayscale(0) opacity(1);
}

@media (max-width: 900px) {
    .lxf-footer__logo-strip .lxf-container { padding-inline: 1.5rem; }
    .lxf-footer__logos { flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; }
    .lxf-footer__logo-img { height: 28px; max-width: 90px; }
}

@media (max-width: 480px) {
    .lxf-footer__logos { gap: 0.75rem 1rem; }
    .lxf-footer__logo-img { height: 24px; max-width: 70px; }
}

/* ─── Tier 2+3: Navy content wrapper ─────────────────────────────────────── */

.lxf-footer__main {
    padding-block: var(--lxf-chrome-2xl) var(--lxf-chrome-xl);
}

.lxf-footer__cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--lxf-chrome-xl);
    padding-block-end: var(--lxf-chrome-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-block-end: var(--lxf-chrome-lg);
}

.lxf-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--lxf-chrome-md);
}

.lxf-footer__address {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.lxf-footer__phone {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lxf-white);
    text-decoration: none;
}

.lxf-footer__phone:hover {
    color: var(--lxf-light-blue);
}

.lxf-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.lxf-footer__menu a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--lxf-transition);
}

.lxf-footer__menu a:hover {
    color: var(--lxf-white);
}

.lxf-footer__col-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55); /* 5.39:1 on navy — up from 0.45 (4.07:1 fail) */
    margin-block-end: 1rem;
}

.lxf-footer__hours {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.lxf-footer__hours-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}

.lxf-footer__hours-day {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    white-space: nowrap;
}

.lxf-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-block-start: var(--lxf-chrome-md);
}

.lxf-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.65);
    transition: background-color var(--lxf-transition), color var(--lxf-transition),
                border-color var(--lxf-transition);
}

.lxf-footer__social-link:hover {
    background-color: rgba(255, 255, 255, 0.10);
    color: var(--lxf-white);
    border-color: rgba(255, 255, 255, 0.35);
}

.lxf-footer__legal {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── Mobile sticky CTA bar ─────────────────────────────── */

.lxf-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--lxf-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 998;
    padding-bottom: env(safe-area-inset-bottom);
}

.lxf-mobile-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 56px;
}

.lxf-mobile-cta__phone,
.lxf-mobile-cta__book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--lxf-transition);
}

.lxf-mobile-cta__phone {
    color: var(--lxf-white);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.lxf-mobile-cta__phone:hover {
    opacity: 0.85;
}

.lxf-mobile-cta__book {
    background-color: var(--lxf-blue);
    color: var(--lxf-white);
}

.lxf-mobile-cta__book:hover {
    opacity: 0.88;
}

/* ─── Header spacer — reserves space below the fixed header ─ */

.lxf-header-spacer {
    display: block;
    height: var(--lxf-header-total);
}

/* ─── Responsive ────────────────────────────────────────── */

@media (max-width: 1100px) {
    /* On laptops where all silo children + root + back won't fit, hide last child */
    .lxf-nav__menu--silo > li:nth-child(n+7) { display: none; }
}

@media (max-width: 767px) {
    .lxf-nav__hamburger {
        display: flex;
    }

    /* Hide desktop navs on mobile */
    .lxf-nav__menu {
        display: none;
    }

    .lxf-header__actions {
        display: none;
    }

    .lxf-header__phone {
        display: none;
    }

    .lxf-header__cta {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.875rem;
    }

    .lxf-footer__cols {
        grid-template-columns: 1fr;
        gap: var(--lxf-chrome-lg);
    }

    .lxf-mobile-cta {
        display: block;
    }

    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Elementor kit coexistence — heading color overrides
   base.css handles font-family via !important.
   These rules restore WHITE text for dark-background sections using
   .lxf-body prefix (specificity 0,2,1) to beat the Elementor kit's
   .elementor-kit-837 h* { color:#002559 } at (0,1,1).
   ═══════════════════════════════════════════════════════════════════ */

/* Page hero: white text on dark overlay */
.lxf-body .page-hero h1,
.lxf-body .page-hero h1 em,
.lxf-body .page-hero h2 { color: var(--white, #ffffff); }
.lxf-body .page-hero h1 em { color: var(--accent-lt, #7eb3ff); }

/* Navy cards: white heading on navy bg */
.lxf-body .sp-card--navy h3 { color: var(--white, #ffffff); }

/* Inline CTA section: white heading on navy bg */
.lxf-body .sp-cta h2 { color: var(--white, #ffffff); }

/* Trust bar numbers (not h elements but kept for completeness) */
.lxf-body .trust-bar h2,
.lxf-body .trust-bar h3 { color: var(--white, #ffffff); }

/* Buttons: restore white text overridden by .elementor-kit-837 a { color:#467FF7 } at (0,1,1).
   .lxf-body prefix raises specificity to (0,2,0) which beats the Elementor kit rule. */
.lxf-body .btn-primary,
.lxf-body .btn-navy { color: #ffffff; }
.lxf-body .btn-outline-white { color: #ffffff; }

/* ═══════════════════════════════════════════════════════════════════════
   Paper card — post-operative instruction pages
   ═══════════════════════════════════════════════════════════════════ */

.lxf-paper-wrap {
    background: #f1f5f9;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
}

.lxf-paper-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 32px rgba(0,0,0,.13), 0 1.5px 6px rgba(0,0,0,.06);
    padding: 3rem 3.5rem;
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.lxf-paper-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='260'%3E%3Ctext x='200' y='130' text-anchor='middle' dominant-baseline='middle' transform='rotate(-30 200 130)' font-size='38' font-weight='900' fill='%23002559' fill-opacity='0.045' font-family='sans-serif' letter-spacing='4'%3ESmile Science%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 400px 260px;
    pointer-events: none;
    z-index: 0;
}

.lxf-paper-card > * { position: relative; z-index: 1; }

.lxf-paper-letterhead {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-bottom: 2px solid #002559;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.lxf-paper-letterhead img { max-height: 44px; width: auto; }

.lxf-paper-letterhead__info {
    font-size: .8125rem;
    color: #002559;
    line-height: 1.5;
}

.lxf-paper-letterhead__info strong {
    display: block;
    font-size: .9375rem;
}

.lxf-print-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: 1.5px solid #002559;
    color: #002559;
    font-size: .8125rem;
    font-weight: 600;
    padding: .5rem 1.125rem;
    border-radius: 999px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background .15s, color .15s;
}

.lxf-print-btn:hover { background: #002559; color: #fff; }

@media (max-width: 640px) {
    .lxf-paper-card { padding: 2rem 1.25rem; }
    .lxf-paper-letterhead { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Resource grid — patient-instructions dynamic list
   ═══════════════════════════════════════════════════════════════════ */

.lxf-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.lxf-resource-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.lxf-resource-card:hover {
    box-shadow: 0 6px 24px rgba(0,37,89,.1);
    transform: translateY(-2px);
    border-color: #c9a84c;
}

.lxf-resource-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #002559;
    margin: 0 0 .5rem;
}

.lxf-resource-card__excerpt {
    font-size: .9rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 1rem;
    flex: 1;
}

.lxf-resource-card__cta {
    font-size: .8125rem;
    color: #002559;
    font-weight: 700;
    letter-spacing: .02em;
}

@media (max-width: 600px) {
    .lxf-resource-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Patient Resources — Post-Op Page Components
   ═══════════════════════════════════════════════════════════════════ */

/* Print-only elements: hidden on screen */
.lxf-print-header,
.lxf-print-footer {
    display: none;
}

/* ── Emergency notice ──────────────────────────────────────────────── */
.lxf-emergency-notice {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.25rem 1.5rem;
}

.lxf-emergency-notice > svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.lxf-emergency-notice__title {
    display: block;
    color: #991b1b;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

.lxf-emergency-notice__text {
    color: #7f1d1d;
    font-size: 0.9375rem;
    line-height: 1.75;
    margin: 0;
}

.lxf-emergency-notice__text a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Quick summary 3-column icon grid ─────────────────────────────── */
.lxf-quick-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.lxf-quick-summary__item {
    background: #fff;
    border-radius: 0.875rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.875rem;
    box-shadow: 0 2px 12px rgba(0, 37, 89, 0.08);
}

.lxf-quick-summary__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #002559;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lxf-quick-summary__label {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #374151;
    margin: 0;
}

@media (max-width: 640px) {
    .lxf-quick-summary {
        grid-template-columns: 1fr;
    }
}

/* ── Post-op body: heading rhythm ─────────────────────────────────── */
.lxf-postop-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.lxf-postop-body h2:first-child {
    margin-top: 0;
}

.lxf-postop-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.625rem;
}

/* ── Instruction list ─────────────────────────────────────────────── */
.lxf-instruction-list {
    list-style: none;
    padding-inline-start: 0;
    margin: 0 0 0.5rem;
}

.lxf-instruction-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    line-height: 1.75;
    color: #374151;
    font-size: 0.9625rem;
}

.lxf-instruction-list li:last-child {
    border-bottom: none;
}

.lxf-instruction-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.175rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #467FF7;
    flex-shrink: 0;
}

/* ── About this procedure callout ─────────────────────────────────── */
.lxf-about-procedure {
    background: #f8faff;
    border-left: 4px solid #467FF7;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
}

.lxf-about-procedure p {
    color: #374151;
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

.lxf-about-procedure a {
    color: #467FF7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── FAQ accordion ────────────────────────────────────────────────── */
.lxf-faq-block {
    margin: 0;
}

.lxf-faq-block details {
    border-top: 1px solid #e5e7eb;
}

.lxf-faq-block details:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.lxf-faq-block summary {
    font-weight: 600;
    color: #111827;
    padding: 1.125rem 2.25rem 1.125rem 0;
    cursor: pointer;
    position: relative;
    list-style: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.15s;
}

.lxf-faq-block summary:hover {
    color: #002559;
}

.lxf-faq-block summary::-webkit-details-marker,
.lxf-faq-block summary::marker {
    display: none;
}

.lxf-faq-block summary::after {
    content: '+';
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.375rem;
    color: #467FF7;
    font-weight: 300;
    line-height: 1;
    transition: color 0.15s;
}

.lxf-faq-block details[open] > summary::after {
    content: '\2212';
}

.lxf-faq-block details > p,
.lxf-faq-block details > div {
    padding: 0 0 1.25rem;
    color: #4b5563;
    line-height: 1.8;
    font-size: 0.9625rem;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   Recovery timeline table — /patient-instructions/
   ═══════════════════════════════════════════════════════════════════ */

.pi-timeline { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.pi-timeline th { background: #002559; color: #fff; padding: .75rem 1rem; text-align: left; font-weight: 600; font-size: .875rem; }
.pi-timeline td { padding: .75rem 1rem; border-bottom: 1px solid #e2e8f0; color: #374151; vertical-align: top; }
.pi-timeline tr:last-child td { border-bottom: none; }
.pi-timeline tr:nth-child(even) td { background: #f8fafc; }
.pi-timeline td:first-child { font-weight: 600; color: #002559; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════════
   Tool card — /patient-tools/
   ═══════════════════════════════════════════════════════════════════ */

.pt-card { display: flex; align-items: flex-start; gap: 1.5rem; padding: 2rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pt-card:hover { box-shadow: 0 6px 28px rgba(0,37,89,.12); transform: translateY(-2px); border-color: #c9a84c; }
.pt-card__icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #002559; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .125rem; }
.pt-card__title { font-size: 1.125rem; font-weight: 700; color: #002559; margin-bottom: .35rem; display: block; }
.pt-card__desc { color: #4b5563; font-size: .9625rem; margin: 0 0 1.25rem; line-height: 1.75; }
.pt-card__cta { font-size: .875rem; color: #002559; font-weight: 700; letter-spacing: .02em; }
.pt-badge { display: inline-block; background: #DFEEFF; color: #002559; font-size: .8rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; margin-bottom: .875rem; letter-spacing: .04em; }
.pt-tool-list { display: flex; flex-direction: column; gap: 1.5rem; }
.pt-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.pt-filter-btn { background: transparent; border: 1.5px solid #d1d5db; border-radius: 999px; color: #374151; cursor: pointer; font-size: .875rem; font-weight: 500; line-height: 1; padding: .5rem 1.125rem; transition: background .15s, border-color .15s, color .15s; }
.pt-filter-btn:hover, .pt-filter-btn.active { background: #002559; border-color: #002559; color: #fff; }
.pt-empty { color: #6b7280; padding: 2rem 0; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════
   Resource cards + EEAT stats grid — /patient-resources/
   ═══════════════════════════════════════════════════════════════════ */

.pr-card { display: flex; flex-direction: column; padding: 2rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .25s, transform .2s, border-color .2s; }
.pr-card:hover { box-shadow: 0 8px 32px rgba(0,37,89,.14); transform: translateY(-3px); border-color: transparent; }
.pr-card__icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #002559; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; flex-shrink: 0; }
.pr-card__title { font-size: 1.125rem; font-weight: 700; color: #002559; margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 2px solid transparent; transition: border-color .2s; display: inline-block; }
.pr-card:hover .pr-card__title { border-bottom-color: #c9a84c; }
.pr-card__desc { color: #4b5563; font-size: .9625rem; margin: 0 0 1.5rem; flex: 1; line-height: 1.7; }
.pr-card__cta { font-size: .875rem; color: #002559; font-weight: 700; letter-spacing: .02em; }
.pr-eeat { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 680px) { .pr-eeat { grid-template-columns: 1fr; gap: 1.5rem; } }
.pr-eeat__stat { display: flex; align-items: center; gap: .875rem; padding: .875rem 1rem; background: #fff; border-radius: 8px; margin-bottom: .75rem; box-shadow: 0 1px 4px rgba(0,37,89,.06); }
.pr-eeat__stat-num { font-size: 1.5rem; font-weight: 700; color: #002559; font-family: 'Cormorant Garamond', serif; line-height: 1; flex-shrink: 0; min-width: 3.5rem; }
.pr-eeat__stat-label { font-size: .875rem; color: #4b5563; line-height: 1.4; }
