/* assets/css/pages/index.css - Home page styles (shared styles: assets/css/public-layout.css) */

body.dark .navbar,
body.dark .footer,
body.dark .card,
body.dark .benefit-card,
body.dark .pill-role,
body.dark .cta-box,
body.dark .sidebar-overlay,
body.dark .sidebar,
body.dark .who-card {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark .method-badge {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.dark .method-badge i {
    color: #7aa9ff !important;
}

body.dark .method-badge:hover {
    background: #1e293b !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark .ai-chat-input input::placeholder {
    color: #94a3b8 !important;
}

body.dark .btn-outline {
    border-color: #475569;
    color: #e2e8f0;
}

body.dark .btn-outline:hover {
    background: #2d3a52;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    padding: 60px 0 50px;
    background: #f6f9fc;
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
    transition: background 0.3s;
}

body.dark .hero {
    background: #0f172a;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-block;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-badge i {
    margin-right: 6px;
}

body.dark .hero-badge {
    background: rgba(13, 110, 253, 0.2);
    color: #7aa9ff;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #0b1e33;
}

body.dark .hero-title {
    color: #f1f5f9;
}

.hero-sub {
    font-size: 1.2rem;
    color: #4a5c72;
    margin-bottom: 24px;
}

body.dark .hero-sub {
    color: #94a3b8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0b1e33;
    display: block;
}

body.dark .hero-stats .stat-number {
    color: #f1f5f9;
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: #4a5c72;
}

body.dark .hero-stats .stat-label {
    color: #94a3b8;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 480px;
}

.hero-image-wrapper .doctor-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    border: 4px solid #fff;
    position: relative;
    z-index: 2;
}

body.dark .hero-image-wrapper .doctor-image {
    border-color: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.method-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0b1e33;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: default;
    z-index: 3;
    animation: floatIn 0.8s ease-out forwards;
    opacity: 0;
}

.method-badge i {
    font-size: 1rem;
    color: #0d6efd;
}

.method-badge:hover {
    transform: scale(1.08) !important;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body.dark .method-badge {
    background: rgba(30, 41, 59, 0.92);
    color: #e2e8f0;
    border-color: #475569;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark .method-badge i {
    color: #7aa9ff;
}

body.dark .method-badge:hover {
    background: #1e293b;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.method-badge:nth-child(1) { top: 5%; left: -5%; animation-delay: 0.1s; }

.method-badge:nth-child(2) { top: 5%; right: -5%; animation-delay: 0.2s; }

.method-badge:nth-child(3) { bottom: 5%; left: -5%; animation-delay: 0.3s; }

.method-badge:nth-child(4) { bottom: 5%; right: -5%; animation-delay: 0.4s; }

.method-badge:nth-child(5) { top: 50%; left: -8%; transform: translateY(-50%); animation-delay: 0.5s; }

.method-badge:nth-child(6) { top: 50%; right: -8%; transform: translateY(-50%); animation-delay: 0.6s; }

.method-badge:nth-child(5):hover { transform: translateY(-50%) scale(1.08) !important; }

.method-badge:nth-child(6):hover { transform: translateY(-50%) scale(1.08) !important; }

@keyframes floatIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   BENEFITS SECTION
   ============================================================ */

.section-padding {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-header .badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.badge-green {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.badge-purple {
    background: rgba(106, 13, 173, 0.1);
    color: #6a0dad;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 1.15rem;
    color: #4a5c72;
}

body.dark .section-sub {
    color: #94a3b8;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    padding: 6px 0;
    color: #4a5c72;
}

.benefits-list li i {
    color: #0d6efd;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

body.dark .benefits-list li {
    color: #94a3b8;
}

/* ============================================================
   WHO IS THIS FOR
   ============================================================ */

.who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.who-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    text-align: center;
}

.who-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -12px rgba(0, 20, 60, 0.12);
}

.who-icon {
    width: 64px;
    height: 64px;
    background: #edf4fe;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 28px;
    margin: 0 auto 16px;
}

.who-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.who-card p {
    font-size: 0.9rem;
    color: #4a5c72;
}

body.dark .who-card p {
    color: #94a3b8;
}

/* ============================================================
   CTA
   ============================================================ */

.cta-box {
    background: #fff;
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    transition: background 0.3s, border-color 0.3s;
}

.cta-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-box p {
    color: #4a5c72;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

body.dark .cta-box p {
    color: #94a3b8;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.trust-badges span {
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    border: 1px solid #e2eaf1;
    transition: background 0.3s, border-color 0.3s;
}

.trust-badges i {
    margin-right: 6px;
}

body.dark .trust-badges span {
    background: #1e293b;
    border-color: #334155;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-image-wrapper {
        min-height: 350px;
        padding: 20px;
    }
    .hero-image-wrapper .doctor-image {
        max-width: 320px;
    }
    .method-badge {
        padding: 8px 14px;
        font-size: 0.75rem;
        gap: 6px;
    }
    .method-badge i {
        font-size: 0.85rem;
    }
    .method-badge:nth-child(1) { top: 2%; left: 0%; }
    .method-badge:nth-child(2) { top: 2%; right: 0%; }
    .method-badge:nth-child(3) { bottom: 2%; left: 0%; }
    .method-badge:nth-child(4) { bottom: 2%; right: 0%; }
    .method-badge:nth-child(5) { top: 50%; left: -2%; transform: translateY(-50%); }
    .method-badge:nth-child(6) { top: 50%; right: -2%; transform: translateY(-50%); }
    .who-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .phone-popup {
        right: 55px;
        min-width: 180px;
    }
    .lang-popup {
        right: 55px;
        min-width: 130px;
    }
    .ai-chat-widget {
        width: 340px;
        height: 460px;
        right: 80px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-actions .btn {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .navbar .container {
        flex-wrap: wrap;
    }
    .nav-actions {
        margin-left: auto;
    }
    .hero {
        padding: 40px 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-sub {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .hero-image-wrapper {
        min-height: 280px;
        padding: 15px;
    }
    .hero-image-wrapper .doctor-image {
        max-width: 240px;
    }
    .method-badge {
        padding: 6px 10px;
        font-size: 0.65rem;
        gap: 4px;
    }
    .method-badge i {
        font-size: 0.7rem;
    }
    .method-badge:nth-child(1) { top: 0%; left: 0%; }
    .method-badge:nth-child(2) { top: 0%; right: 0%; }
    .method-badge:nth-child(3) { bottom: 0%; left: 0%; }
    .method-badge:nth-child(4) { bottom: 0%; right: 0%; }
    .method-badge:nth-child(5) { top: 50%; left: -0%; transform: translateY(-50%); }
    .method-badge:nth-child(6) { top: 50%; right: -0%; transform: translateY(-50%); }
    .who-grid {
        grid-template-columns: 1fr;
    }
    .benefits-list {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .section-title {
        font-size: 2rem;
    }
    .cta-box {
        padding: 32px 20px;
    }
    .sidebar {
        width: 280px;
        left: -300px;
    }
    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 6px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    .floating-btn .tooltip,
    .ai-chat-toggle .tooltip {
        display: none;
    }
    .phone-popup {
        right: 48px;
        min-width: 160px;
        bottom: 0;
    }
    .phone-popup .phone-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 48px;
        min-width: 120px;
        bottom: 0;
    }
    .lang-popup .lang-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .ai-chat-widget {
        width: 300px;
        height: 420px;
        right: 70px;
        bottom: 16px;
    }
    .ai-chat-messages {
        padding: 10px 14px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.8rem;
        padding: 7px 12px;
    }
    .ai-chat-header {
        padding: 10px 14px;
        min-height: 50px;
    }
    .ai-chat-header .avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.8rem;
    }
    .ai-chat-input {
        padding: 8px 12px 12px;
        gap: 6px;
    }
    .ai-chat-input input {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-height: 34px;
    }
    .ai-chat-input button {
        font-size: 0.8rem;
        padding: 6px 14px;
        min-height: 34px;
    }
    .quick-replies {
        padding: 0 12px 6px;
    }
    .quick-replies button {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-image-wrapper {
        min-height: 220px;
        padding: 10px;
    }
    .hero-image-wrapper .doctor-image {
        max-width: 180px;
    }
    .method-badge {
        padding: 4px 8px;
        font-size: 0.55rem;
        gap: 3px;
        border-radius: 30px;
    }
    .method-badge i {
        font-size: 0.6rem;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
    .floating-actions {
        bottom: 12px;
        right: 12px;
        gap: 5px;
    }
    .phone-popup {
        right: 42px;
        min-width: 140px;
        bottom: 0;
        padding: 8px 0;
        border-radius: 12px;
    }
    .phone-popup .phone-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 8px;
    }
    .phone-popup .phone-item i {
        width: 16px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 42px;
        min-width: 100px;
        bottom: 0;
        padding: 6px 0;
        border-radius: 12px;
    }
    .lang-popup .lang-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }
    .ai-chat-widget {
        width: 280px;
        height: 380px;
        right: 60px;
        bottom: 12px;
        border-radius: 16px;
    }
    .ai-chat-messages {
        padding: 10px 12px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.75rem;
        padding: 6px 10px;
        max-width: 90%;
    }
    .ai-chat-header {
        padding: 8px 12px;
        min-height: 44px;
    }
    .ai-chat-header .avatar {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.75rem;
    }
    .ai-chat-header .header-info p {
        font-size: 0.6rem;
    }
    .ai-chat-input {
        padding: 6px 10px 10px;
        gap: 5px;
    }
    .ai-chat-input input {
        font-size: 0.75rem;
        padding: 5px 10px;
        min-height: 30px;
    }
    .ai-chat-input button {
        font-size: 0.75rem;
        padding: 5px 12px;
        min-height: 30px;
    }
    .quick-replies {
        padding: 0 10px 4px;
        gap: 4px;
    }
    .quick-replies button {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}

@media (max-width: 400px) {
    .phone-popup {
        right: 38px;
        min-width: 120px;
    }
    .phone-popup .phone-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .lang-popup {
        right: 38px;
        min-width: 90px;
    }
    .lang-popup .lang-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .ai-chat-widget {
        width: 250px;
        height: 340px;
        right: 52px;
    }
    .ai-chat-messages {
        padding: 8px 10px;
    }
    .ai-chat-messages .message {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    .ai-chat-input input {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-height: 26px;
    }
    .ai-chat-input button {
        font-size: 0.7rem;
        padding: 4px 10px;
        min-height: 26px;
    }
}
