/* ============================================================
   Vaidhya – Shared Design System
   Bootstrap 5 + Custom Variables & Components
   ============================================================ */

/* ── Design Tokens ── */
:root {
    --brand-primary: #13beb9;
    --brand-dark: #0f766e;
    --brand-light: #f0fdfa;
    --brand-hover: #0d9488;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --sky-accent: #e0f2fe;
    --sky-primary: #0284c7;
    --white: #ffffff;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(15,23,42,0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.brand-logo, .display-heading {
    font-family: 'Outfit', sans-serif;
}

/* ── Navbar ── */
.vaidhya-nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-dark) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.navbar-brand span {
    color: var(--brand-primary);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.btn-nav-action {
    background-color: var(--brand-primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-nav-action:hover {
    background-color: var(--brand-hover);
    transform: translateY(-1px);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 60%, #f8fafc 100%);
    padding: 120px 0 64px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(19,190,185,0.12) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2,132,199,0.08) 0%, transparent 70%);
    bottom: -60px;
    left: -60px;
    z-index: 0;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-badge {
    background: rgba(19,190,185,0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(19,190,185,0.25);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem;
}

/* ── Section Headings ── */
.section-tag {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 600px;
}

/* ── Cards ── */
.v-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-sm);
}

.v-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(19,190,185,0.3);
}

.v-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.v-card-icon.teal    { background: var(--brand-light); color: var(--brand-primary); }
.v-card-icon.blue    { background: #eff6ff; color: #3b82f6; }
.v-card-icon.purple  { background: #f5f3ff; color: #7c3aed; }
.v-card-icon.green   { background: #f0fdf4; color: #16a34a; }
.v-card-icon.orange  { background: #fff7ed; color: #ea580c; }
.v-card-icon.red     { background: #fef2f2; color: #dc2626; }
.v-card-icon.sky     { background: var(--sky-accent); color: var(--sky-primary); }

/* ── Speciality Card ── */
.speciality-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(226,232,240,0.6);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    height: 100%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.speciality-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: 0 20px 25px -5px rgba(19,190,185,0.1);
}

.speciality-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}

.speciality-card:hover .icon-box { background-color: var(--brand-primary); }
.speciality-card:hover .icon-box i { color: #fff; }
.speciality-card i { font-size: 2rem; color: var(--brand-primary); transition: all 0.3s ease; }
.speciality-card h5 { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; color: var(--text-dark); }
.speciality-card p  { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }

/* ── Doctor Card ── */
.doctor-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.doctor-card:hover {
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.08);
    border-color: rgba(19,190,185,0.3);
    transform: translateY(-4px);
}

.doctor-badge {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.doctor-card-img { height: 220px; object-fit: cover; width: 100%; }

.rating-badge {
    background-color: #fef08a;
    color: #854d0e;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
}

.btn-book {
    background-color: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-book:hover {
    background-color: var(--brand-primary);
    color: #fff;
}

/* ── Stat Card ── */
.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand-primary), var(--sky-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Pricing Card ── */
.pricing-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    border-color: var(--brand-primary);
    color: #fff;
}

.pricing-card.featured .text-muted { color: #94a3b8 !important; }
.pricing-card.featured .pricing-feature { color: #cbd5e1; }

.pricing-card:not(.featured):hover {
    border-color: var(--brand-primary);
    box-shadow: 0 20px 40px rgba(19,190,185,0.12);
    transform: translateY(-4px);
}

.pricing-price {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand-primary), var(--sky-primary));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pricing-feature i { color: var(--brand-primary); font-size: 1rem; flex-shrink: 0; }
.pricing-feature.disabled i { color: #cbd5e1; }
.pricing-feature.disabled span { color: #94a3b8; text-decoration: line-through; }

/* ── Buttons ── */
.btn-primary-v {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-v:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(19,190,185,0.35);
    color: #fff;
}

.btn-outline-v {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline-v:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    top: -200px;
    right: -150px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    bottom: -150px;
    left: -100px;
}

/* ── Feature List Item ── */
.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(226,232,240,0.6);
}

.feature-list-item:last-child { border-bottom: none; }

.feature-list-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ── Comparison Table ── */
.comparison-table {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.comparison-table thead th {
    background: #f8fafc;
    padding: 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.comparison-table thead th:first-child { text-align: left; }
.comparison-table thead th.highlighted { background: var(--brand-light); color: var(--brand-dark); }

.comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(226,232,240,0.5);
    vertical-align: middle;
    text-align: center;
    font-size: 0.95rem;
}

.comparison-table td:first-child { text-align: left; font-weight: 500; color: var(--text-dark); }
.comparison-table td.highlighted { background: rgba(240,253,250,0.4); }
.comparison-table tr:last-child td { border-bottom: none; }

/* ── Testimonial Card ── */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(19,190,185,0.3);
    transform: translateY(-4px);
}

.testimonial-stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 1rem; }

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-light);
}

/* ── Team Card ── */
.team-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

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

.team-card .team-info { padding: 1.5rem; }
.team-card h5 { font-weight: 700; margin-bottom: 4px; }
.team-card small { color: var(--brand-primary); font-weight: 600; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-primary), var(--sky-primary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(19,190,185,0.2);
}

/* ── Filter Tabs ── */
.filter-tab {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 0.9rem;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* ── Search Widget ── */
.search-widget {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.search-widget .input-group-custom {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 8px 16px;
    position: relative;
}

.search-widget .input-group-custom:not(:last-child) {
    border-right: 1px solid #e2e8f0;
}

.search-widget i { color: var(--text-muted); font-size: 1.2rem; margin-right: 12px; }
.search-widget input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.search-widget input::placeholder { color: #94a3b8; }

.search-widget .btn-search {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search-widget .btn-search:hover {
    background-color: var(--brand-hover);
    transform: translateY(-1px);
}

/* ── Search Suggestions ── */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    display: none;
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.suggestion-item:hover { background-color: var(--brand-light); }
.suggestion-item i { margin-right: 12px; color: var(--brand-primary); }

/* ── Mega Section ── */
.mega-section {
    background-color: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226,232,240,0.5);
}

/* ── Footer ── */
.vaidhya-footer {
    background-color: #0f172a;
    color: #94a3b8;
}

.vaidhya-footer a {
    color: #cbd5e1;
    transition: color 0.2s ease;
    text-decoration: none;
}

.vaidhya-footer a:hover { color: var(--brand-primary); }

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
}

.footer-divider { border-color: rgba(255,255,255,0.08) !important; }

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Accordion ── */
.v-accordion .accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.v-accordion .accordion-button:not(.collapsed) {
    color: var(--brand-primary);
    background: var(--brand-light);
}

.v-accordion .accordion-button::after {
    filter: none;
}

.v-accordion .accordion-button:not(.collapsed)::after {
    filter: none;
}

.v-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

/* ── Badge / Chip ── */
.v-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v-badge-teal { background: var(--brand-light); color: var(--brand-primary); }
.v-badge-blue { background: #eff6ff; color: #3b82f6; }
.v-badge-green { background: #f0fdf4; color: #16a34a; }
.v-badge-orange { background: #fff7ed; color: #ea580c; }

/* ── Spacing Utilities (Bootstrap extension) ── */
.py-6 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
.pt-6 { padding-top: 5.5rem !important; }
.pb-6 { padding-bottom: 5.5rem !important; }

@media (min-width: 992px) {
    .py-lg-6 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
    .pt-lg-6 { padding-top: 5.5rem !important; }
    .pb-lg-6 { padding-bottom: 5.5rem !important; }
}

/* ── Utility Helpers ── */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-primary), var(--sky-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-brand-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
}

.bg-hero-gradient {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 50%, #fff 100%);
}

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

.divider-v {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(19,190,185,0.3), transparent);
    border: none;
    margin: 3rem 0;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .search-widget {
        flex-direction: column;
        padding: 16px;
    }

    .search-widget .input-group-custom {
        width: 100%;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 0;
    }

    .search-widget .btn-search {
        width: 100%;
        margin-top: 12px;
    }

    .page-hero { padding: 100px 0 48px; }
}

@media (max-width: 767.98px) {
    .section-title { font-size: 1.9rem; }
    .pricing-card { padding: 1.75rem; }
    .cta-section { border-radius: var(--radius-md); }
}
