/* Location Page Styles - v2.2 - Shared by hmdhou.com and hmdaus.com (fern watermark) 20260219 - hamburger menu iOS fix */

/* Visually hidden (accessibility) - alias for sr-only, used by both sites */
.visually-hidden,
.sr-only-focusable.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Austin hero sublead (hmdaus only uses these) */
.hero-sublead {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 0;
    color: #2c3e50;
}
.hero-sublead--limited {
    font-weight: 800;
    text-align: center;
    margin-top: 14px;
    margin-bottom: 0;
}
.hero-sublead--cta {
    text-align: center;
    margin-top: 6px;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .hero .hero-sublead { font-size: 17px; }
}

/* Austin provider image (Scott Reis) */
.provider-image.provider-image-reis {
    object-position: 50% 20%;
}

/* Section utility classes (replaces inline styles) */
.section-white {
    background: #ffffff;
    padding: 10px 0 40px;
}
.section-light {
    background: #f4f6f9;
    padding: 20px 0 40px;
}
.section-team {
    background: #ffffff;
    padding: 40px 0 50px;
}
.heading-reset {
    margin-top: 0;
}
.heading-reset-lg {
    margin-top: 0;
    font-size: 22px;
}
.heading-reset-mb {
    margin-bottom: 0;
}
.modal-title-reset {
    margin-top: 0;
}
.modal-body-reset {
    margin-bottom: 8px;
}
.modal-actions-start {
    justify-content: flex-start;
}
.cta-card-top {
    margin-top: 18px;
}
.cta-card-top-lg {
    margin-top: 20px;
}
.provider-title-accent {
    color: #a5c422;
    font-weight: 700;
}
.directions-mt {
    margin-top: 14px;
}
.cta-actions-mt {
    margin-top: 14px;
}
.footer-note {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 14px;
    color: #2c3e50;
}
.card-center {
    text-align: center;
    margin-bottom: 0;
}
.btn-auto {
    width: auto;
}
.link-accent {
    color: #a5c422;
}
.faq-h3-mt {
    margin-top: 18px;
}
.team-support-heading {
    margin: 28px 0 14px;
    text-align: center;
}
.management-mt {
    margin-top: 36px;
    margin-bottom: 0;
}
.footer-p-mb {
    margin-bottom: 8px;
}
.insurance-cta-mt {
    margin-top: 16px;
}
.section-subtitle-mb {
    margin-bottom: 22px;
}

/* Directory links (Yelp | MapQuest) – on page for SEO, hidden from view */
.dir-links-hidden {
    display: none !important;
}

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

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

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

.hero:not(.location-info) {
    padding: 50px 0 40px;
}

.hero .hero-lead {
    font-size: 18px;
    line-height: 1.55;
    margin-top: 10px;
    margin-bottom: 12px;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .hero .hero-lead { font-size: 17px; }
}

.provider-card--wide .provider-image {
    width: 180px;
    height: 180px;
}

.cta-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-actions .btn {
    width: auto !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    min-height: 44px;
}

.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 card as link (e.g. surgeon profile) - same visual treatment */
a.provider-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.provider-card:hover {
    text-decoration: none;
    color: inherit;
}

.provider-tiles-row {
    margin-top: 20px; /* Match hmdaus.com: vertical space between About Dr. Blake and provider tiles */
}

/* Match hmdaus.com: gap between Blake + surgeon tiles (no overlap) */
@media (min-width: 768px) {
    .provider-tiles-row .col-sm-6:first-child {
        padding-right: 20px !important;
    }
    .provider-tiles-row .col-sm-6:last-child {
        padding-left: 20px !important;
    }
}

.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-headache {
    font-weight: 800;
}

/* Match hmdaus.com: brand-md for headacheMD Management and similar */
.brand-md {
    color: #829b3c;
    font-weight: 800;
}

.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;
}

/* Vertically center nav items in tall navbar - desktop only (mobile: let Bootstrap collapse control visibility) */
@media (min-width: 769px) {
    .navbar .navbar-collapse {
        display: flex !important;
        align-items: center !important;
    }
}
/* Mobile: ensure hamburger menu is closed by default and can toggle (Bootstrap collapse) */
@media (max-width: 768px) {
    .navbar .navbar-collapse.collapse {
        display: none !important;
    }
    .navbar .navbar-collapse.collapse.in {
        display: block !important;
    }
}
.navbar-nav {
    display: flex !important;
    align-items: flex-end !important; /* Align Learn + Insurances buttons on same baseline */
}
.navbar-nav > li {
    display: flex !important;
    align-items: center !important;
}

/* 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: flex !important;
    align-items: center !important;
    margin-left: 8px;
}
.navbar-nav > li.nav-learn-zone > a {
    padding: 10px 24px !important;
    line-height: 1.2 !important;
}
.learn-zone-link {
    color: #fff !important;
    background: #a5c422 !important;
    padding: 10px 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    height: 44px !important;
    min-height: 44px !important;
    min-width: 200px !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}
/* Match Insurances Accepted hover: darker green, slight lift – override navbar a:hover */
.learn-zone-link:hover {
    color: #fff !important;
    background: #8fb01a !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* 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.nav-learn-zone > a.learn-zone-link {
        padding: 10px 20px !important;
        height: 44px !important;
        min-height: 44px !important;
    }

    .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;
    }
}

/* Fern watermark - v1.4 - 20260219 - behind tiles, visible in gaps */
.fern-watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.fern-watermark {
    position: absolute;
    object-fit: contain;
    transform-origin: center;
    max-width: 100%;
    max-height: 100%;
}
