/* Houston Location Page Styles - v1.2 - Insurance modal desktop scroll fix 20260215 */

body {
    padding-top: 150px; /* Account for taller fixed navbar */
}

@media (max-width: 768px) {
    body {
        padding-top: 110px;
    }
}

.location-info {
    padding: 60px 0 30px;
    background: #f8f9fa;
    margin-top: 0;
}

.provider-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.provider-card .title {
    color: #a5c422;
    font-weight: 600;
    margin-bottom: 15px;
}

.provider-card p:last-child {
    margin-bottom: 0;
}

.provider-card:hover {
    transform: translateY(-5px);
}

.provider-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 45%;
    margin: 0 auto 30px;
    display: block;
    border: 4px solid #a5c422;
}

.contact-section {
    background: #2c3e50;
    color: white;
    padding: 60px 0;
}

.btn-primary {
    background: #a5c422;
    border: none;
    padding: 12px 15px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 50%;
}

.btn-primary:hover {
    background: #8fb01a;
    transform: translateY(-2px);
}

.team-gallery {
    background: #f4f6f9;
    padding: 60px 0;
}

.providers-section .provider-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.providers-section .provider-row:last-of-type {
    margin-bottom: 0;
}

.providers-section .provider-row > [class*="col-"] {
    display: flex;
}

.provider-image.provider-image-jill {
    object-position: 50% 35%;
}

.provider-image.provider-image-elizabeth {
    object-position: 50% 50%;
}

.provider-image.provider-image-brenda {
    object-position: 50% 35%;
}

.provider-image.provider-image-liz {
    object-position: 50% 30%;
}

.provider-image.provider-image-maria {
    object-position: 50% 25%;
}

.provider-image.provider-image-michele {
    object-position: 50% 20%;
}

.provider-image.provider-image-shivani {
    object-position: 50% 20%;
}

.office-hours-manager-card {
    width: 70%;
    margin: 25px auto 0;
}

@media (max-width: 768px) {
    .office-hours-manager-card {
        width: 100%;
    }
}

.team-photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-photo-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.team-photo-card p {
    margin: 0;
    padding: 18px 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    flex: 1;
}

.brand-highlight {
    font-size: 1.08em;
    font-weight: 500;
    color: #2c3e50;
    font-family: 'Brandon Grotesque', 'BrandonGrotesque', 'Brandon Grot W01', 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.brand-highlight .brand-md {
    color: #8fb01a;
    font-weight: 700;
    margin-left: 2px;
}

/* Updated navigation styles - using !important to override external CSS */
.navbar {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
    min-height: 140px !important; /* Increased height to accommodate full logo */
    padding: 0 !important; /* Remove all vertical padding */
    overflow: visible !important; /* Allow logo to be fully visible */
}

.navbar-brand {
    padding: 0 15px !important; /* Remove vertical padding, keep horizontal */
    height: 140px !important; /* Match increased navbar height */
    line-height: 140px !important; /* Center logo vertically */
    display: flex !important; /* Use flexbox for better alignment */
    align-items: center !important; /* Center logo vertically within navbar */
    overflow: visible !important; /* Allow logo to be fully visible */
    padding-top: 0 !important; /* Remove top padding to move logo up */
    margin: 0 !important; /* Remove all margins */
}

/* Logo sizing to fit full logo within increased navbar height - override external CSS */
.navbar-brand img {
    height: 130px !important; /* Increased height to show full logo */
    width: auto !important;
    max-height: 130px !important; /* Ensure logo doesn't exceed navbar height */
    max-width: 100% !important; /* Ensure logo doesn't exceed container width */
    margin: 0 !important; /* Remove all margins - override logo-style.css */
    padding: 0 !important; /* Remove all padding */
    object-fit: contain !important; /* Scale logo to fit within bounds */
    object-position: center center !important; /* Center logo to prevent cutoff */
}

.navbar-toggle {
    margin-top: 5px; /* Minimal margin to fit tight topbar */
    margin-bottom: 5px;
}

/* Navigation link styles */
.navbar-nav > li > a {
    color: #2c3e50;
    font-weight: 500;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.navbar-nav > li > a:hover {
    color: #a5c422;
    background-color: transparent;
}

.return-link {
    color: #27ae60 !important;
}

.return-link:hover {
    color: #2ecc71 !important;
}
.nav-learn-zone {
    display: inline-block !important;
    margin-left: 8px;
}
.learn-zone-link {
    color: #fff !important;
    padding: 8px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    min-height: 44px;
}
.learn-zone-link:hover {
    color: #fff !important;
    opacity: 0.9;
}

/* Login button styling - applied same CSS from index.html */
.admin-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin-right: 10px;
    min-height: 44px; /* Touch-friendly minimum height */
    line-height: 1.2;
    transition: background-color 0.3s ease;
}

.admin-btn:hover {
    background-color: #1a252f;
    text-decoration: none;
    color: white;
}

/* Mobile responsive adjustments - using !important to override external CSS */
@media (max-width: 768px) {
    .navbar {
        min-height: 130px !important; /* Increased to accommodate full logo on tablets */
        padding: 0 !important; /* Remove all vertical padding */
        overflow: visible !important; /* Allow logo to be fully visible */
    }

    .navbar-nav > li > a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .navbar-nav > li > a i {
        margin-right: 5px;
    }

    /* Responsive logo sizing for mobile - override external CSS */
    .navbar-brand img {
        height: 120px !important; /* Increased to show full logo */
        max-height: 120px !important; /* Ensure logo doesn't exceed navbar height */
        max-width: 100% !important; /* Ensure logo doesn't exceed container width */
        margin: 0 !important; /* Override logo-style.css margin rules */
        padding: 0 !important; /* Remove all padding */
        object-fit: contain !important; /* Scale logo to fit within bounds */
        object-position: center center !important; /* Center logo to prevent cutoff */
    }

    .navbar-brand {
        height: 130px !important; /* Match increased navbar height */
        line-height: 130px !important; /* Center logo vertically */
        padding: 0 15px !important; /* Remove vertical padding */
        display: flex !important; /* Use flexbox for better alignment */
        align-items: center !important; /* Center logo vertically within navbar */
        overflow: visible !important; /* Allow logo to be fully visible */
        padding-top: 0 !important; /* Remove top padding to move logo up */
        margin: 0 !important; /* Remove all margins */
    }
}

/* Extra small mobile devices - override external CSS */
@media (max-width: 480px) {
    .navbar {
        min-height: 120px !important; /* Increased to accommodate full logo on small devices */
        padding: 0 !important; /* Remove all vertical padding */
        overflow: visible !important; /* Allow logo to be fully visible */
    }

    .navbar-brand img {
        height: 110px !important; /* Increased to show full logo */
        max-height: 110px !important; /* Ensure logo doesn't exceed navbar height */
        max-width: 100% !important; /* Ensure logo doesn't exceed container width */
        margin: 0 !important; /* Override logo-style.css margin rules */
        padding: 0 !important; /* Remove all padding */
        object-fit: contain !important; /* Scale logo to fit within bounds */
        object-position: center center !important; /* Center logo to prevent cutoff */
    }

    .navbar-brand {
        height: 120px !important; /* Match increased navbar height */
        line-height: 120px !important; /* Center logo vertically */
        padding: 0 15px !important; /* Remove vertical padding */
        display: flex !important; /* Use flexbox for better alignment */
        align-items: center !important; /* Center logo vertically within navbar */
        overflow: visible !important; /* Allow logo to be fully visible */
        padding-top: 0 !important; /* Remove top padding to move logo up */
        margin: 0 !important; /* Remove all margins */
    }
}

.moving-banner {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    white-space: nowrap;
}

.moving-banner__track {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    padding: 10px 0;
    will-change: transform;
    animation: movingBannerScroll 24s linear infinite;
}

.moving-banner__text {
    color: #c62828;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.new-location-label {
    color: #c62828;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.new-location-highlight {
    color: #c62828;
    font-weight: 800;
}

.contact-details-compact h3 {
    margin-top: 0;
}

.contact-details-compact p {
    margin-bottom: 10px;
}

.feedback-qr__img {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 12px auto 0;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* QR image uses .feedback-qr__img */

.relocation-modal[hidden] {
    display: none !important;
}

.relocation-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.relocation-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.relocation-modal__panel {
    position: relative;
    max-width: 760px;
    margin: 12vh auto 0;
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 26px 22px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.35);
    text-align: center;
}

.relocation-modal__panel h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.relocation-modal__panel p {
    margin-bottom: 10px;
}

.relocation-modal__actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.relocation-modal__btn {
    width: auto !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
}

.modal-open-custom {
    overflow: hidden;
}

/* Insurance modal + buttons */
.nav-insurance-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.nav-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btn-insurance {
    width: auto !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px;
    vertical-align: middle;
}

.insurance-modal .relocation-modal__panel {
    text-align: left;
    max-width: 760px;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin: 5vh auto 5vh;
    min-height: 0; /* allow flex children to shrink and scroll */
}

.insurance-modal .relocation-modal__panel h2 {
    flex-shrink: 0;
}

/* Scrollable body: disclaimer + insurance list (web and touch devices) */
.insurance-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
    margin: 0 -4px 0 0; /* slight space for scrollbar */
    padding-right: 4px;
}

.insurance-modal .relocation-modal__actions {
    flex-shrink: 0;
}

.insurance-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #2c3e50;
    padding: 4px 8px;
    cursor: pointer;
}

.insurance-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 30px;
    padding-left: 18px;
    margin: 14px 0 0;
}

.insurance-list li {
    break-inside: avoid;
    margin: 0 0 8px;
}

@media (max-width: 640px) {
    .nav-insurance-stack {
        align-items: flex-start;
    }
    .insurance-list {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
    /* Insurance modal: scrollable on iPhone/Android, respect safe area */
    .insurance-modal .relocation-modal__panel {
        max-height: min(85vh, 85dvh);
        margin: 3vh auto 3vh;
        padding-left: max(18px, env(safe-area-inset-left));
        padding-right: max(18px, env(safe-area-inset-right));
    }
    .insurance-modal__scroll {
        -webkit-overflow-scrolling: touch;
    }
}

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

/* Focus indicators (replaces JS-based approach) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #a5c422;
    outline-offset: 2px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .moving-banner__track {
        animation: none;
    }
    .wow {
        animation: none !important;
        visibility: visible !important;
    }
    .provider-card:hover {
        transform: none;
    }
}
