/* 
   Theme: Modern Clinical Luxury
   Palette: Navy (#0A192F), Gold (#CEA055), White/Greys 
*/

:root {
    --primary-navy: #0A192F;
    --primary-gold: #CEA055;
    --primary-gold-hover: #b3883e;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--white);
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background-color: var(--primary-gold-hover);
    border-color: var(--primary-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-navy);
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
    margin-top: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-navy);
}

/* --- Navigation --- */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.logo .accent-text {
    color: var(--primary-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:not(.btn):hover {
    color: var(--primary-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 85vh;
    background: linear-gradient(135deg, #0f2340 0%, #1e3a63 100%);
    /* Fallback if no image */
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

/* Abstract luxury background shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: rgba(206, 160, 85, 0.1);
    transform: rotate(-15deg);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-sub {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* --- Bio Section --- */
.section {
    padding: 6rem 0;
}

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

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bio-image {
    position: relative;
}

.placeholder-img {
    width: 100%;
    height: 500px;
    background-color: #ddd;
    border-radius: 8px;
    background-image: url('https://placehold.co/600x800/0A192F/CEA055?text=Dr.+Fareed');
    /* Temporary placeholder */
    background-size: cover;
    background-position: center centre;
    box-shadow: 20px 20px 0 var(--primary-gold);
}

.kicker {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.bio-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.separator-gold {
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
    margin-bottom: 2rem;
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.credentials {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    background-color: rgba(206, 160, 85, 0.15);
    color: #9c7636;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.text-link {
    color: var(--primary-navy);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-gold);
}

/* --- Services --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-gold);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.card-link {
    font-weight: 600;
    color: var(--primary-gold);
}

.highlight-card {
    background: #fffbf2;
    /* Subtle gold tint */
    border: 1px solid rgba(206, 160, 85, 0.2);
}

/* --- Patient Resources --- */
.bg-navy {
    background-color: var(--primary-navy);
    color: var(--white);
}

.bg-navy h2,
.bg-navy h3 {
    color: var(--white);
}

.resource-flex {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.resource-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 8px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-item p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.tiny-text {
    font-size: 0.75rem;
    margin-top: 1rem;
    opacity: 0.5;
}

/* --- Footer --- */
footer {
    background-color: #050d18;
    color: var(--white);
    padding-top: 5rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col h4 {
    color: var(--primary-gold);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 2rem 1.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Todo: implement JS toggle */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .bio-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* --- New Image Styles --- */

.nav-logo {
    height: 60px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    object-fit: contain;
}

.service-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background-color: #f0f0f0;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.bio-photo {
    width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--primary-gold);
    object-fit: cover;
}

/* --- Cash Service Landing Links --- */
.cash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.cash-card {
    background: var(--white);
    border: 1px solid rgba(206, 160, 85, 0.28);
    border-left: 4px solid var(--primary-gold);
    border-radius: 8px;
    padding: 1rem;
    font-weight: 600;
}

.cash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 18px -8px rgba(15, 23, 42, 0.2);
}

.cash-cta-row {
    justify-content: center;
    margin-top: 2rem;
}

.btn.dark-secondary {
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

/* --- Chatbot Widget Styles --- */

#ucoc-chatbot-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }

    /* Chat Toggle Button */
    #ucoc-chat-toggle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0066CC, #004899);
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

    #ucoc-chat-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    }

    #ucoc-chat-toggle svg {
        width: 30px;
        height: 30px;
        fill: white;
    }

    /* Notification Badge */
    .ucoc-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff4444;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: bold;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }

        100% {
            transform: scale(1);
        }
    }

    /* Chat Window */
    #ucoc-chat-window {
        position: absolute;
        bottom: 80px;
        right: 0;
        width: 380px;
        height: 600px;
        background: white;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        display: none;
        flex-direction: column;
        overflow: hidden;
    }

    /* Chat Header */
    #ucoc-chat-header {
        background: linear-gradient(135deg, #0066CC, #004899);
        color: white;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #ucoc-chat-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

    #ucoc-chat-header p {
        margin: 4px 0 0 0;
        font-size: 12px;
        opacity: 0.9;
    }

    #ucoc-close-chat {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 5px;
        transition: opacity 0.3s;
    }

    #ucoc-close-chat:hover {
        opacity: 0.7;
    }

    /* Messages Container */
    #ucoc-messages {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        background: #f8f9fa;
    }

    /* Message Styles */
    .ucoc-message {
        margin-bottom: 16px;
        display: flex;
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .ucoc-message.bot {
        justify-content: flex-start;
    }

    .ucoc-message.user {
        justify-content: flex-end;
    }

    .ucoc-message-content {
        max-width: 70%;
        padding: 12px 16px;
        border-radius: 12px;
        line-height: 1.4;
        font-size: 14px;
    }

    .ucoc-message.bot .ucoc-message-content {
        background: white;
        color: #333;
        border: 1px solid #e0e0e0;
    }

    .ucoc-message.user .ucoc-message-content {
        background: linear-gradient(135deg, #0066CC, #004899);
        color: white;
    }

    /* Quick Actions */
    .ucoc-quick-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .ucoc-quick-action {
        background: white;
        border: 2px solid #0066CC;
        color: #0066CC;
        padding: 8px 16px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.3s;
    }

    .ucoc-quick-action:hover {
        background: #0066CC;
        color: white;
    }

    /* Input Container */
    #ucoc-input-container {
        padding: 16px;
        background: white;
        border-top: 1px solid #e0e0e0;
        display: flex;
        gap: 10px;
    }

    #ucoc-message-input {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid #ddd;
        border-radius: 24px;
        outline: none;
        font-size: 14px;
        transition: border-color 0.3s;
    }

    #ucoc-message-input:focus {
        border-color: #0066CC;
    }

    #ucoc-send-btn {
        background: #0066CC;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }

    #ucoc-send-btn:hover {
        background: #004899;
    }

    #ucoc-send-btn svg {
        fill: white;
        width: 20px;
        height: 20px;
    }

    /* Typing Indicator */
    .ucoc-typing-indicator {
        display: flex;
        gap: 4px;
        padding: 12px 16px;
        background: white;
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        width: fit-content;
    }

    .ucoc-typing-indicator span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #999;
        animation: typing 1.4s infinite;
    }

    .ucoc-typing-indicator span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .ucoc-typing-indicator span:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes typing {

        0%,
        60%,
        100% {
            transform: translateY(0);
            opacity: 0.5;
        }

        30% {
            transform: translateY(-10px);
            opacity: 1;
        }
    }

    /* Form Styles */
    .ucoc-form-group {
        margin-bottom: 12px;
    }

    .ucoc-form-group label {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
        color: #666;
    }

    .ucoc-form-group input,
    .ucoc-form-group select,
    .ucoc-form-group textarea {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        outline: none;
        font-family: inherit;
    }

    .ucoc-form-group textarea {
        resize: vertical;
        min-height: 60px;
    }

    .ucoc-form-group input:focus,
    .ucoc-form-group select:focus,
    .ucoc-form-group textarea:focus {
        border-color: #0066CC;
    }

    .ucoc-submit-btn {
        background: #0066CC;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        width: 100%;
        transition: background 0.3s;
    }

    .ucoc-submit-btn:hover {
        background: #004899;
    }

    .ucoc-submit-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    /* Success Message */
    .ucoc-success {
        background: #d4edda;
        border: 1px solid #c3e6cb;
        color: #155724;
        padding: 12px;
        border-radius: 8px;
        margin-top: 10px;
    }

    /* Info Message */
    .ucoc-info {
        background: #cce5ff;
        border: 1px solid #b8daff;
        color: #004085;
        padding: 12px;
        border-radius: 8px;
        margin-top: 10px;
    }

    /* Mobile Responsive */
    @media (max-width: 480px) {
        #ucoc-chat-window {
            width: 100vw;
            height: 100vh;
            bottom: 0;
            right: 0;
            border-radius: 0;
        }
    }
