/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        Roboto, 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --bs-primary: #2563eb;
    /* Modern blue */
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

p {
    font-size: 13.5px;
    line-height: 1.7;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

h6 {
    font-size: 0.95rem;
    font-weight: 600;
}

.image-wrapper {
    height: 250px;
    /* control image height */
    overflow: hidden;
}

section {
    scroll-margin-top: 80px; /* height of navbar */
}

.image-wrapper img {
    width:100%;
    height: 100%;
    object-fit: cover;
    /* fills card without distortion */
}

.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 60px;
    z-index: 9999;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background-color: transparent;
}

/* floating circular button */
.chat-toggle {
    width: var(--chat-size);
    height: var(--chat-size);
    border-radius: 10px;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
    background-color: transparent;
}

.chat-toggle:hover {
    transform: translateY(-4px) scale(1.03);
    background-color: transparent;
}

.chat-icon {
    width: 90%;
    height: 90%;
    display: block;
}



.chat-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 36, 0.92);
    color: white;
    padding: 8px 10px;
   border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

.chat-toggle:hover .chat-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-6px);
}

/* chat panel */
.chat-panel {
    position: fixed;
    right: 20px;
    bottom: calc(var(--chat-size) + 64px);
    width: var(--panel-width);
    height: var(--panel-height);
    background: var(--chat-bg);
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.28);
    display: flex;
    flex-direction: column;
    transform: translateY(12px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s cubic-bezier(.2, .9, .25, 1), opacity .18s ease;
    overflow: hidden;
}

.chat-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 23, 36, 0.06);
}

.chat-title {
    font-weight: 700;
    color: var(--chat-text);
}

.chat-close {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: rgba(15, 23, 36, 0.6);
}

/* voiceflow chat body container */
.chat-body {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
}

#voiceflow-chat {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 576px) {
    .chat-icon {
        width: 80%;
        height: 90%;
    }
}