/* Site theme overrides. Bootstrap supplies layout and utility styles.
   Keep responsive and reduced-motion rules beside their components. */

/* 1. Theme variables */

:root {
    --brand-accent-background: linear-gradient(180deg, var(--brand-accent-start) 0%, var(--brand-accent-end) 100%);
    --text-on-accent: #10172f;
    --color-white: #fff;
    --surface-warm: #fefbf6;
    --text-muted: #606779;
    --text-charcoal: #333333;
    --white-subtle: rgba(255, 255, 255, 0.05);
    --white-translucent: rgba(255, 255, 255, 0.5);
    --shadow-scrollbar: rgba(0, 0, 0, 0.3);
    --shadow-play-icon: rgba(0, 0, 0, 0.35);
    --radius-sm: 8px;
    --radius-button: 12px;
    --radius-media: 16px;
    --radius-panel: 20px;
}

/* 2. Typography and text links */

h1 {
    font-family: 'Merriweather';
    font-style: italic;
    font-size: 62px;
    line-height: 66px;
    color: var(--color-white) !important;
    font-weight: 900;
}

h2 {
    font-family: 'Merriweather';
    font-style: italic;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 1.5rem !important;
}

h3 {
    font-weight: 600;
}

p {
    font-family: 'Open Sans';
    line-height: 19pt;
    margin-bottom: 1.5rem !important;
}

.eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 5px !important;
}

a {
    color: var(--brand-primary) !important;
}

/* 3. Shared layout, colors, and Bootstrap overrides */

.rounded {
    border-radius: var(--radius-media) !important;
}

.section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-50 {
    padding-top: 50px;
    padding-bottom: 50px;
}

.orange {
    background: var(--brand-accent-background);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.bg-gray {
    background-color: var(--surface-light);
}

.bg-primary,
.bg-blue {
    background-color: var(--brand-primary);
    color: var(--color-white) !important;
}

/* 4. Navigation and responsive menu */

.form-control,
.custom-select,
.dropdown-menu,
.navbar-toggler {
    border-radius: var(--radius-sm);
}

.navbar-brand {
    line-height: 20px !important;
}

.nav-link,
.navbar .dropdown-item {
    color: var(--text-charcoal) !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text-charcoal) !important;
    text-decoration: underline;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item:active,
.navbar .dropdown-item.active {
    background-color: var(--surface-light);
    color: var(--text-charcoal) !important;
}

@media (max-width: 991.98px) {
    .navbar-expand-lg .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        box-shadow: 0 8px 12px var(--shadow-scrollbar);
    }

    .navbar-expand-lg .navbar-nav {
        width: 100%;
        margin-left: auto !important;
        margin-right: auto;
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-expand-lg .navbar-nav {
        max-width: 540px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-expand-lg .navbar-nav {
        max-width: 720px;
    }
}

.navbar {
    border-bottom: 1px solid var(--brand-accent-end);
}

p a:not(.btn):not(.social-link),
li a:not(.btn):not(.nav-link):not(.dropdown-item) {
    text-decoration: underline !important;
}

p a:not(.btn):not(.social-link):hover,
li a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    text-decoration: none !important;
}

.bg-primary a:not(.btn),
.bg-blue a:not(.btn) {
    color: var(--color-white) !important;
}

/* 5. Buttons and interaction states */

.btn {
    border-width: 1px;
    font-weight: 500;
    border-radius: var(--radius-button);
    padding: 8px 16px;
}

.btn-primary {
    padding: 9px 17px;
    color: var(--text-on-accent) !important;
    background: var(--brand-accent-background) !important;
    border: 0 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--surface-light) 100%) !important;
    color: var(--brand-primary) !important;
    border: 0 !important;
}

.nav-item .btn-primary:hover,
.nav-item .btn-primary:focus {
    background: linear-gradient(180deg, var(--brand-secondary) 0%, var(--brand-secondary-end, var(--brand-secondary)) 100%) !important;
    color: var(--color-white) !important;
    border: 0 !important;
}

.btn-secondary {
    color: var(--brand-primary) !important;
    background-color: var(--color-white) !important;
    border: 1px solid var(--brand-primary) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    color: var(--color-white) !important;
    background-color: var(--brand-primary) !important;
}

.btn-outline-primary {
    color: var(--color-white) !important;
    background-color: var(--white-subtle) !important;
    border: 1px solid var(--white-translucent) !important;
    box-shadow: none !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: var(--brand-primary) !important;
    background-color: var(--color-white) !important;
    border-color: var(--color-white) !important;
    box-shadow: none !important;
}

#featured-treatments .btn-outline-light {
    color: var(--color-white) !important;
    transition: color 150ms ease-in-out, background-color 150ms ease-in-out, border-color 150ms ease-in-out;
}

#featured-treatments .btn-outline-light:hover,
#featured-treatments .btn-outline-light:focus,
#featured-treatments .btn-outline-light:active {
    color: var(--brand-primary) !important;
    background-color: var(--color-white);
    border-color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
    #featured-treatments .btn-outline-light {
        transition: none;
    }
}

.bg-primary .btn-outline-light,
.bg-blue .btn-outline-light {
    color: var(--color-white) !important;
    background-color: transparent;
    border-color: var(--color-white);
}

.bg-primary .btn-outline-light:hover,
.bg-primary .btn-outline-light:focus,
.bg-primary .btn-outline-light:active,
.bg-blue .btn-outline-light:hover,
.bg-blue .btn-outline-light:focus,
.bg-blue .btn-outline-light:active {
    color: var(--brand-primary) !important;
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.bg-primary .btn-outline-primary:hover,
.bg-primary .btn-outline-primary:focus,
.bg-primary .btn-outline-primary:active,
.bg-blue .btn-outline-primary:hover,
.bg-blue .btn-outline-primary:focus,
.bg-blue .btn-outline-primary:active {
    color: var(--brand-primary) !important;
    background-color: var(--color-white) !important;
    border-color: var(--color-white) !important;
}

.bg-primary .btn:focus-visible,
.bg-blue .btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--brand-accent-end);
    outline-offset: 3px;
}

/* Bootstrap controls inherit the selected office theme. */
.text-primary { color: var(--brand-primary) !important; }
.bg-primary,
.bg-blue { background-color: var(--brand-primary) !important; }
.border-primary { border-color: var(--brand-primary) !important; }
.form-control:focus,
.custom-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.25);
}
.custom-range::-webkit-slider-thumb { background-color: var(--brand-primary); }
.custom-range::-moz-range-thumb { background-color: var(--brand-primary); }
.custom-range::-ms-thumb { background-color: var(--brand-primary); }
.custom-range::-webkit-slider-thumb:active { background-color: var(--brand-secondary); }
.custom-range::-moz-range-thumb:active { background-color: var(--brand-secondary); }
.custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
}
.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.25);
}

/* 6. Hero */

.office-hero-overlay { position: relative; }
.office-hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(var(--brand-primary-rgb), 0.95) 0%,
        rgba(var(--brand-primary-rgb), 0.85) 25%,
        rgba(var(--brand-primary-rgb), 0.3) 45%,
        transparent 65%
    );
    pointer-events: none;
}
.office-hero-overlay > .container { position: relative; }
/* A uniform primary-color overlay keeps mobile hero text readable. */
@media (max-width: 767.98px) {
    .office-hero-overlay::before {
        background: rgba(var(--brand-primary-rgb), 0.8);
    }
}


.hero-copy {
    padding-top: 140px;
    padding-bottom: 140px;
}

.hero-copy p {
    color: var(--color-white);
}

/* 7. Featured treatments and carousel */


.aligners-card,
.implants-card,
.whitening-card,
.family-dentistry-card,
.allon4-card,
.orthodontics-card {
    background-size: cover;
    background-position: center;
}

.aligners-card {
    background-image: url('../img/clear-aligners-card-background.jpg');
}

.implants-card {
    background-image: url('../img/dental-implant-card-background.jpg');
}

.whitening-card {
    background-image: url('../img/whitening-card-background.jpg');
}

.family-dentistry-card {
    background-image: url('../img/family-dentistry-card-background.jpg');
}

.allon4-card {
    background-image: url('../img/all-on-4-card-background.jpg');
}

.orthodontics-card {
    background-image: url('../img/clear-aligners-card-background.jpg');
}

.hcard {
    border-radius: var(--radius-panel);
}

.check-icon {
    width: 23px;
    height: 23px;
    margin-right: 5px;
    background: var(--brand-accent-end);
}

#featured-carousel {
    padding-bottom: 32px;
}

#featured-carousel .splide__slide {
    height: auto;
}

#featured-carousel .hcard .btn {
    align-self: flex-start;
    margin-top: auto;
}

#featured-carousel .splide__arrow {
    background: var(--brand-primary);
    opacity: 1;
    top: auto;
    bottom: -8px;
    transform: none;
}

#featured-carousel .splide__arrow svg {
    fill: var(--color-white);
}

#featured-carousel .splide__arrow--prev {
    left: 0;
}

#featured-carousel .splide__arrow--next {
    right: 0;
}

#featured-carousel .splide__pagination {
    bottom: 0;
}

#featured-carousel .splide__pagination__page {
    background: var(--text-muted);
}

#featured-carousel .splide__pagination__page.is-active {
    background: var(--brand-primary);
}

#featured-carousel button:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}


#featured-carousel:not(.is-initialized) {
    visibility: visible;
}

#featured-carousel:not(.is-initialized) .splide__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

@media (max-width: 991.98px) {
    #featured-carousel:not(.is-initialized) .splide__list {
        grid-template-columns: 1fr;
    }
}


/* 8. Patient stories and play controls */

.testimonial-video {
    cursor: pointer;
}

.testimonial-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    opacity: 0.75;
    filter: drop-shadow(0 2px 4px var(--shadow-play-icon));
    transform: translate(-50%, -50%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.testimonial-play::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 19px solid var(--color-white);
    content: '';
    transform: translate(-40%, -50%);
}

.testimonial-video:hover .testimonial-play,
.testimonial-video:focus-visible .testimonial-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-play {
        transition: none;
    }
}

.testimonial-video:focus-visible {
    outline: 3px solid var(--brand-accent-end);
    outline-offset: 4px;
}

/* 9. Dentist cards and biographies */

.dentist-card {
    color: var(--brand-primary);
    cursor: pointer;
}

.dentist-photo {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-media);
}

.dentist-photo-placeholder {
    background: var(--surface-light);
    color: var(--text-muted);
    font-size: 14px;
}

.dentist-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.dentist-card:hover .dentist-name {
    color: var(--brand-primary);
    text-decoration: underline;
}

.dentist-card:focus-visible {
    outline: 3px solid var(--brand-accent-end);
    outline-offset: 5px;
    border-radius: var(--radius-media);
}

.dentist-bio {
    padding: 28px;
}

.dentist-bio h3 {
    color: var(--brand-primary);
}

.dentist-photo-frame {
    border-radius: var(--radius-media);
}

.dentist-photo-frame .dentist-photo {
    border-radius: 0;
    transition: transform 220ms ease;
}

.dentist-card:hover .dentist-photo-frame .dentist-photo,
.dentist-card:focus-visible .dentist-photo-frame .dentist-photo {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .dentist-photo-frame .dentist-photo {
        transition: none;
    }
}

.dentist-specialty {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.25;
}

.dentist-tag {
    border: 1px solid transparent;
    background-color: var(--surface-light);
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
}

.dentist-bio .dentist-profile-name {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
}

.dentist-role,
.dentist-expertise-title {
    color: var(--brand-primary);
}

.dentist-expertise-title {
    font-size: 20px;
}

.dentist-expertise-list {
    padding-left: 20px;
}

/* 10. Practice benefits and service cards */

.bcard .rounded {
    border-radius: var(--radius-button) !important;
}

.bcard {
    color: var(--brand-primary);
    border-radius: var(--radius-panel);
}

.service-photo {
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.advantage-card h3 {
    font-size: 1.25rem;
}

.advantage-card {
    color: var(--brand-primary);
}

.advantage-icon {
    color: var(--brand-accent-end);
    font-size: 32px;
    line-height: 1;
}

#services .bcard h3,
#implant-options .bcard h3 {
    font-size: 1.25rem;
}

/* Homepage Invisalign recognition */
.invisalign-recognition-logo {
    width: 68px;
    height: auto;
    flex-shrink: 0;
}

.invisalign-recognition-photo {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.bg-primary .reviews-carousel .splide__arrow,
.bg-blue .reviews-carousel .splide__arrow {
    background: var(--color-white);
}

.bg-primary .reviews-carousel .splide__arrow svg,
.bg-blue .reviews-carousel .splide__arrow svg {
    fill: var(--brand-primary);
}

.bg-primary .reviews-carousel .splide__pagination__page,
.bg-blue .reviews-carousel .splide__pagination__page {
    background: var(--white-translucent);
}

.bg-primary .reviews-carousel .splide__pagination__page.is-active,
.bg-blue .reviews-carousel .splide__pagination__page.is-active {
    background: var(--color-white);
}

.bg-primary .reviews-carousel button:focus-visible,
.bg-blue .reviews-carousel button:focus-visible {
    outline-color: var(--color-white);
}

/* 11. Full-height section photos */

.first-visit-photo {
    object-fit: cover;
}

@media (min-width: 768px) {
    #first-visit .col-md-5 {
        position: relative;
        min-height: 320px;
    }

    .first-visit-photo {
        position: absolute;
        top: 0;
        left: 15px;
        width: calc(100% - 30px) !important;
        height: 100%;
    }
}

.everyday-care-photo {
    object-fit: cover;
}

@media (min-width: 768px) {
    .everyday-care-photo-column {
        position: relative;
        min-height: 320px;
    }

    .everyday-care-photo {
        position: absolute;
        top: 0;
        left: 15px;
        width: calc(100% - 30px) !important;
        height: 100%;
    }
}

/* 12. Modals and booking page */

.modal-content {
    border: 0;
    border-radius: var(--radius-panel);
}

.modal-body > .embed-responsive {
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
    overflow: hidden;
}

#testimonialVideoModal .embed-responsive {
    border-radius: var(--radius-panel);
    overflow: hidden;
}

.testimonial-video-close {
    top: -16px;
    right: -10px;
    z-index: 1;
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-white);
    background: var(--brand-primary);
    cursor: pointer;
}

.testimonial-video-close span {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    font-size: 0;
}

.testimonial-video-close span::before,
.testimonial-video-close span::after {
    position: absolute;
    top: 5px;
    left: 0;
    width: 12px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    content: '';
    transform: rotate(45deg);
}

.testimonial-video-close span::after {
    transform: rotate(-45deg);
}

.testimonial-video-close:focus-visible {
    outline: 3px solid var(--brand-accent-end);
    outline-offset: 3px;
}

#bookingFrame {
    height: 65vh;
}

#bookingModal .modal-header {
    color: var(--brand-primary);
}

#bookingModal .modal-footer {
    color: var(--text-muted);
}

#testimonialVideoModal .modal-content,
.dentist-modal .modal-content {
    background: transparent;
}

.dentist-modal .modal-body {
    background: var(--color-white);
    border-radius: inherit;
    overflow: hidden;
}

.dentist-modal .embed-responsive {
    border-radius: 0;
}

#bookingModal .modal-content {
    overflow: hidden;
}

#bookingModal .modal-header {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

#bookingModal .modal-footer {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.booking-page-title {
    font-size: 48px;
    line-height: 1.15;
    color: var(--brand-primary) !important;
    margin-bottom: 1.5rem;
}

/* 13. Footer */

#footer {
    border-top: 1px solid var(--brand-primary);
}

.footer-description {
    color: var(--text-muted);
}

/* 14. Scrollbar */

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 4px var(--shadow-scrollbar);
    background-color: var(--surface-warm);
}

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
    background-color: var(--surface-warm);
}

::-webkit-scrollbar-thumb {
    background-color: var(--brand-primary);
}

/* Legal pages share the site theme with comfortable reading widths. */
.legal-page-title {
    color: var(--brand-primary) !important;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
}

/* Subpage headings sit below page titles in the visual hierarchy. */
.subpage h2 {
    font-size: 32px;
    line-height: 1.25;
}

.legal-copy h2 {
    margin-top: 2.5rem;
    font-size: 32px;
    line-height: 1.3;
    color: var(--brand-primary);
}

.legal-copy p,
.legal-copy li {
    overflow-wrap: anywhere;
}

.legal-copy li {
    margin-bottom: 0.75rem;
}

/* Written patient reviews and location */
.reviews-carousel { padding-bottom: 48px; }
.reviews-carousel .splide__slide { height: auto; }
.reviews-carousel .splide__arrow {
    top: auto;
    bottom: 0;
    transform: none;
    background: var(--brand-primary);
    opacity: 1;
}
.reviews-carousel .splide__arrow svg { fill: var(--color-white); }
.reviews-carousel .splide__arrow--prev { left: 0; }
.reviews-carousel .splide__arrow--next { right: 0; }
.reviews-carousel .splide__pagination { bottom: 8px; }
.reviews-carousel .splide__pagination__page { background: var(--text-muted); }
.reviews-carousel .splide__pagination__page.is-active { background: var(--brand-primary); }
.review-stars { color: var(--brand-primary); letter-spacing: 2px; }
.reviews-carousel button:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}
.reviews-carousel:not(.is-initialized) { visibility: visible; }
.reviews-carousel:not(.is-initialized) .splide__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
@media (max-width: 767.98px) {
    .reviews-carousel:not(.is-initialized) .splide__list { grid-template-columns: 1fr; }
    .location-map { height: 350px; }
}

/* A shorter mobile hero reveals more of the wide portrait. */
@media (max-width: 767.98px) {
    .hero-copy {
        padding-top: 160px;
        padding-bottom: 160px;
    }

    .hero-copy h1 {
        font-size: 44px;
        line-height: 1.12;
    }
}

/* Clinic tour gallery */
.clinic-photo {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 200ms ease;
}
.clinic-photo-link:hover .clinic-photo,
.clinic-photo-link:focus-visible .clinic-photo { transform: scale(1.04); }
.clinic-photo-link:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 3px; }
#clinicPhotoModal .modal-content { overflow: hidden; }
#clinicPhoto { max-height: 75vh; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
    .clinic-photo { transition: none; }
}

/* Smile gallery: original photos are overlaid without cropping. */
.smile-comparison { --comparison-position: 50%; }
.smile-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--surface-light);
    clip-path: inset(0 0 0 var(--comparison-position));
}
.smile-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--comparison-position);
    width: 2px;
    background: var(--color-white);
    transform: translateX(-50%);
    pointer-events: none;
}
.smile-label {
    position: absolute;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    background: var(--brand-primary);
    font-size: 14px;
    pointer-events: none;
}
.smile-label-before { left: 12px; }
.smile-label-after { right: 12px; }
.smile-case .custom-range:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }

/* Service pages: Bootstrap grid, shared theme and original treatment imagery. */
.service-detail-image img { height: auto; }
.service-benefit-icon {
    width: 30px;
    height: 30px;
    background: var(--brand-primary);
}
.service-section .container > .row { row-gap: 24px; }
.subpage .service-directory-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
}
.service-directory-heading a { text-decoration: none; }
.service-directory-heading a:hover { text-decoration: underline; }

/* FAQ cards share one rounded outline, including when answers expand. */
.faq-list .card {
    border-radius: var(--radius-button);
    overflow: hidden;
    color: var(--brand-primary);
}

.faq-list .card h3 > .btn {
    border: 0 !important;
    border-radius: 0;
}

.faq-list .card h3 > .btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

/* Implant FAQ cards let the section background show around the controls. */
#implant-faqs .faq-list .card {
    background-color: transparent;
}
.faq-list .faq-question,
.faq-list .faq-question:hover,
.faq-list .faq-question:focus,
.faq-list .faq-question:active {
    color: var(--brand-primary) !important;
    background-color: var(--color-white) !important;
    box-shadow: none;
    line-height: 1.5;
    font-weight: 600;
}

.faq-list .faq-question:hover,
.faq-list .faq-question[aria-expanded="true"] {
    background-color: var(--surface-light) !important;
}

.faq-question .bi {
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

.faq-list .faq-answer {
    color: var(--brand-primary);
}

.bg-primary .faq-list .faq-answer,
.bg-primary .faq-list .faq-answer p,
.bg-primary .faq-list .faq-answer a:not(.btn),
.bg-blue .faq-list .faq-answer,
.bg-blue .faq-list .faq-answer p,
.bg-blue .faq-list .faq-answer a:not(.btn) {
    color: var(--color-white) !important;
}

.faq-list .faq-answer {
    background-color: transparent;
}

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

@media (prefers-reduced-motion: reduce) {
    .faq-question .bi { transition: none; }
}

/* Implant treatment process */
.implant-step-number {
    color: var(--brand-primary);
    font-size: 28px;
}
.bg-primary .implant-step-number,
.bg-blue .implant-step-number {
    color: var(--color-white);
}

/* New-patient financing logos and offers */
.insurance-logo { width: 150px; height: 75px; object-fit: contain; }
.offer-amount { color: var(--brand-primary); font-size: 32px; line-height: 1.2; }
.offer-title { font-size: 22px; color: var(--brand-primary); }
