/* ============================================
   Apex Health Care
   ============================================ */

:root {
    --dark-purple: #4a4a4a;
    --dark-purple-gray: #3f3f3f;
    --light-purple: #e98f82;
    --pink: #e98f82;
    --hot-pink: #d9786d;
    --red: #c96f66;
    --orange: #f0b08f;
    --blue: #676767;
    --dark-blue: #4a4a4a;
    --teal: #7d8f88;
    --light-blue: #e98f82;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --bs-btn-hover-bg: #4b5563;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-600);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Playfair Display for all headings */
h1, h2, h3, h4, .section-title, .portal-title, .tools-title, .insurance-title {
    font-family: 'Playfair Display', serif;
}

/* Top Bar - Dark purple-gray */
.top-bar {
    background: var(--dark-purple-gray);
    color: #ffc2aa;
    padding: 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.top-bar .sep {
    margin: 0 12px;
    opacity: 0.8;
}

/* Main Navigation */
.main-nav {
    background: var(--white) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 220px;
    object-fit: contain;
}

.main-nav .nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    padding: 0 16px !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--light-purple) !important;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login {
    padding: 10px 20px;
    background: var(--dark-purple);
    color: var(--white) !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn-appointment {
    padding: 10px 24px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    color: var(--white) !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn-healow-pay {
    padding: 10px 20px;
    background: #0b7285;
    color: var(--white) !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn-healow-pay:hover {
    background: #0f8aa0;
    color: var(--white) !important;
}

.btn-appointment:hover {
    opacity: 0.95;
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 580px;
    background:
        radial-gradient(circle at 80% 20%, rgba(233, 143, 130, 0.32), transparent 30%),
        linear-gradient(135deg, #454545 0%, #686868 52%, #f3b09a 100%);
    padding-bottom: 40px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(40, 40, 40, 0.82) 0%, rgba(70, 70, 70, 0.56) 55%, rgba(233, 143, 130, 0.22) 100%);
}

.hero-content {
    position: relative;
    padding: 90px 0 160px;
}

.hero-title {
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
}

.hero-line {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
}

@media (max-width: 991px) {
    .hero-line {
        font-size: 48px;
    }
}

@media (max-width: 575px) {
    .hero-line {
        font-size: 36px;
    }
}

.hero-line.gradient-text {
    background: linear-gradient(90deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    max-width: 540px;
    margin-bottom: 0;
}

/* Hero Cards */
.hero-cards {
    position: relative;
    margin-top: -110px;
    z-index: 10;
}

.hero-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.hero-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 20px;
    color: var(--white);
}

.hero-card-icon.red { background: var(--red); }
.hero-card-icon.orange { background: var(--orange); }
.hero-card-icon.purple { background: var(--light-purple); }
.hero-card-icon.teal { background: var(--teal); }

.hero-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-purple);
    margin-bottom: 10px;
}

.hero-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 18px;
}

.btn-hero-card {
    display: inline-block;
    padding: 10px 20px;
    background: var(--dark-purple);
    color: var(--white) !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.btn-hero-card:hover {
    opacity: 0.9;
    color: var(--white) !important;
}

/* Comprehensive Care */
.comprehensive-care {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 15px;
    color: var(--gray-500);
    max-width: 680px;
    margin-bottom: 36px;
}

.care-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
}

.care-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.care-card-overlay {
    position: absolute;
    inset: 0;
}

.care-card-overlay.pink { background: linear-gradient(to top, rgba(233, 143, 130, 0.88), transparent 55%); }
.care-card-overlay.hot-pink { background: linear-gradient(to top, rgba(74, 74, 74, 0.84), transparent 55%); }
.care-card-overlay.purple { background: linear-gradient(to top, rgba(125, 143, 136, 0.86), transparent 55%); }

.care-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
}

.care-card-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}

.service-details h3 {
    color: var(--dark-purple);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details li {
    color: var(--gray-500);
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
}

.service-details li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    position: absolute;
    left: 0;
    top: 10px;
}

/* About Practice */
.about-practice {
    background: var(--gray-100);
    padding: 70px 0;
}

.about-practice .eyebrow {
    color: var(--pink);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about-practice-title {
    margin-bottom: 20px;
}

.about-doctor-photo {
    margin: 0 auto;
    max-width: 380px;
    padding: 5px;
    background: linear-gradient(145deg, var(--pink), var(--orange));
    border-radius: 22px;
    box-shadow:
        0 24px 48px rgba(74, 74, 74, 0.14),
        0 4px 12px rgba(233, 143, 130, 0.2);
}

.about-doctor-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

@media (min-width: 992px) {
    .about-doctor-photo {
        margin: 0;
        max-width: none;
    }
}

.about-practice p {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 14px;
}

/* Insurance Section - Solid dark purple */
.insurance-section {
    background: var(--dark-purple);
    padding: 56px 0;
    color: var(--white);
}

.insurance-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 700;
}

.insurance-section p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
    font-size: 15px;
}

.insurance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.insurance-list li {
    padding: 4px 0;
    position: relative;
    padding-left: 18px;
}

.insurance-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.9);
}

.insurance-note {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    opacity: 1;
    color: white ! IMPORTANT;
    background: var(--dark-purple);
    border-left: 3px solid var(--orange);
    padding: 12px 14px;
    border-radius: 6px;
}

.insurance-note a {
    color: var(--white);
    font-weight: 700;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

.testimonials .section-desc {
    margin-bottom: 48px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin: 12px;
    border: 1px solid var(--gray-200);
}

.testimonial-stars {
    color: var(--red);
    font-size: 13px;
    margin-bottom: 14px;
}

.testimonial-quote {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.65;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 48px !important;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    color: var(--dark-purple);
    font-size: 14px;
}

/* Patient Portal */
.patient-portal {
    padding: 80px 0;
}

.portal-image-wrap {
    position: relative;
}

.portal-image-wrap img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
}

.portal-badge {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: var(--gray-600);
}

.portal-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 18px;
}

.patient-portal p {
    color: var(--gray-500);
    margin-bottom: 22px;
    font-size: 15px;
}

.portal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
}

.portal-features li {
    padding: 7px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-features li i {
    color: #22c55e;
    font-size: 15px;
}

.btn-portal {
    display: inline-block;
    padding: 14px 28px;
    background: var(--orange);
    color: var(--white) !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.btn-portal:hover {
    background: #ea580c;
    color: var(--white) !important;
}

.portal-learn {
    font-size: 14px;
}

.portal-learn a {
    color: var(--light-blue);
    text-decoration: underline;
}

.portal-learn a:hover {
    color: var(--teal);
}

/* Mobile App */
.mobile-app {
    padding: 80px 0;
}

.mobile-app .section-title {
    margin-bottom: 18px;
}

.mobile-app p {
    color: var(--gray-500);
    margin-bottom: 14px;
    font-size: 15px;
}

.app-availability {
    font-weight: 500;
    color: var(--gray-600) !important;
}

.app-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.app-store-btn,
.google-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #1f2937;
    color: var(--white) !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.app-store-btn:hover,
.google-play-btn:hover {
    background: var(--dark-purple);
    color: var(--white) !important;
}

.app-setup-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 50px 0 40px;
}

.phone-mockups {
    position: relative;
    height: 380px;
}

.phone-mockups img {
    position: absolute;
    max-width: 200px;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
}

.phone-1 {
    right: 100px;
    top: 20px;
}

.phone-2 {
    right: 20px;
    bottom: 20px;
}

/* App Setup Steps */
.step-item {
    text-align: center;
    padding: 22px 12px;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 auto 16px; */
    margin: 0 10px;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.step-item p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
}

.practice-code-box {
    display: flex;
    margin-top: 44px;
    border-radius: 10px;
    overflow: hidden;
}

.code-left {
    flex: 1;
    background: var(--dark-blue);
    color: var(--white);
    padding: 22px 28px;
    font-size: 14px;
}

.code-right {
    background: #fef3c7;
    color: var(--gray-600);
    padding: 22px 48px;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
}

.tools-tabs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 36px;
    padding: 0;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 6px;
}

.tools-tabs li a {
    display: block;
    padding: 12px 18px;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
}

.tools-tabs li.active a {
    background: var(--dark-blue);
    color: var(--white) !important;
}

.tools-tabs li a:hover {
    color: var(--dark-purple);
}

.tools-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 22px;
}

.kiosk-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tools-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tools-features li i {
    color: #22c55e;
    font-size: 16px;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: var(--gray-100);
}

.faq-section .section-title {
    margin-bottom: 36px;
}

.faq-section .accordion-item {
    border: 1px solid var(--gray-200);
    margin-bottom: 12px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.faq-section .accordion-button {
    font-weight: 600;
    color: var(--dark-blue) !important;
    background: var(--white) !important;
    box-shadow: none !important;
    padding: 18px 22px;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--dark-blue) !important;
}

.faq-section .accordion-body {
    padding: 0 22px 18px;
    color: var(--gray-500);
}

/* CTA Banner */
.cta-banner {
    padding: 56px 0;
}

.cta-content {
    background: linear-gradient(90deg, var(--dark-purple) 0%, var(--pink) 100%);
    border-radius: 14px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
}

.cta-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 15px;
}

.btn-cta {
    padding: 14px 32px;
    background: var(--dark-purple);
    color: var(--white) !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.btn-cta:hover {
    background: #1a0f2e;
    color: var(--white) !important;
}

/* Footer */
.main-footer {
    background: var(--gray-100);
    padding: 56px 0 24px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 18px;
}

.main-footer p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 18px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--pink);
    color: var(--white);
}

.main-footer h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-purple);
    margin-bottom: 18px;
}

.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer ul li {
    margin-bottom: 8px;
}

.main-footer ul li a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
}

.main-footer ul li a:hover {
    color: var(--light-purple);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--gray-500);
    font-size: 14px;
}

.contact-list li i {
    color: var(--pink);
    margin-top: 4px;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 991px) {
    .main-nav .navbar-collapse {
        padding-top: 18px;
    }
    .main-nav .nav-link {
        color: var(--gray-600) !important;
        font-weight: 500;
        padding: 5px 0px !important;
        border-bottom: 1px solid #dbdbdb;
    }
    .main-nav .nav-item:last-child .nav-link {
        border-bottom: 0px solid #dbdbdb;
    }
    .insurance-list li::before{
        content: "";
    }
    .nav-buttons {
        margin-top: 12px;
    }

    .hero-content {
        padding: 70px 0 180px;
    }

    .hero-cards {
        margin-top: -90px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .phone-mockups {
        height: 320px;
    }

    .phone-mockups img {
        max-width: 160px;
    }

    .phone-1 {
        right: 70px;
    }

    .practice-code-box {
        flex-direction: column;
    }

    .code-right {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .top-bar .col-md-6 {
        text-align: center !important;
    }

    .top-bar .sep {
        display: none;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 60px 0 200px;
    }

    .hero-cards {
        margin-top: -100px;
    }

    .care-card {
        height: 280px;
    }

    .insurance-section .row {
        text-align: center;
    }

    .insurance-title {
        margin-bottom: 22px;
    }

    .tools-tabs {
        justify-content: center;
    }

    .phone-mockups {
        height: 260px;
    }

    .phone-mockups img {
        max-width: 130px;
    }
}

/* OWL Carousel */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.owl-nav button {
    position: absolute;
    width: 42px;
    height: 42px;
    background: var(--white) !important;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: var(--dark-purple) !important;
    pointer-events: all;
}

.owl-nav button.owl-prev {
    left: -15px;
}

.owl-nav button.owl-next {
    right: -15px;
}

.owl-nav button:hover {
    background: var(--dark-purple) !important;
    color: var(--white) !important;
}

@media (max-width: 767px) {
    .owl-nav button.owl-prev {
        left: 0;
    }

    .owl-nav button.owl-next {
        right: 0;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--light-purple);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--dark-purple);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

.back-to-top i {
    font-size: 18px;
}
